LCD_GetDisplayBuffer() -- invalid function error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

I'm using a a CY8CKIT-062-BLE with the EINK display.

I have two projects using this kit.

One works to update the display the other does not.

On the one that doesn't work (link) it complains about a code line using:

LCD_GetDisplayBuffer().

 

The linker complains and aborts:

.\CortexM4\ARM_GCC_541\Debug\main_cm4.o: In function `UpdateDisplay':
C:\Users\lpoma\Desktop\SineGen_Audio\SineGen_Audio_EINK_062-BLE.cydsn/main_cm4.c:174: undefined reference to `LCD_GetDisplayBuffer'
collect2.exe: error: ld returned 1 exit status
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.

I compared the build specs of the two projects and the issue is not immediately apparent.

Apparently I'm missing a em-Win library reference some where.

I can use some expert help here.

Thanks in advance.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

Hi,

Try replacing the attached LCDConf.c with the file of the same name in your project.

I don't know why, but it seems that the correct modification has not been made to this file.

(I have referred to "https://github.com/iotexpert/mbed-os-emwin-epd" for this fix.)

Regards,
Shimamura

View solution in original post

0 Likes
6 Replies
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @Len_CONSULTRON ,

1. Can you please let me know the version of PDL you are using?

2. Also, could you try checking both "Core" and "LCD Driver" - the options for graphics package under emwin, in the build settings? For reference, please check this thread here :  Solved: PSoC6 integrated with EmWin library - Graphics opt... - Infineon Developer Community  

Please respond to the above queries and let me know in case of any help.

Best Regards,

Aashita

 

0 Likes
lock attach
Attachments are accessible only for community members.

AAshita,

Thanks for looking at this issue.



1. Can you please let me know the version of PDL you are using?

2. Also, could you try checking both "Core" and "LCD Driver" - the options for graphics package under emwin, in the build settings? 

 

Here is a snapshot of the PDL version and emWin options being used:Len_CONSULTRON_0-1636378631611.png

Additionally as I mentioned one project works.  The second project that is not working is based off of the first project.  Both projects are using the CY8CKIT-062-BLE with the EINK display.

UPDATE:

Attached is the Output window verbose text from the linker phase if this helps.

 

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Hi @Len_CONSULTRON ,

Can you please try attaching your project here? We will try to check at our end if we can reproduce the issue. This will help us follow the internal process to get it resolved.

Best Regards,

Aashita

0 Likes
lock attach
Attachments are accessible only for community members.

Aashita,

Attached is my archive of the problematic project.

This problem still exists even when upgrading to Creator 4.4 and PDL 3.15.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
lock attach
Attachments are accessible only for community members.
SuSh_1535366
Level 5
Level 5
Distributor - Macnica (Japan)
10 solutions authored 10 likes given 10 likes received

Hi,

Try replacing the attached LCDConf.c with the file of the same name in your project.

I don't know why, but it seems that the correct modification has not been made to this file.

(I have referred to "https://github.com/iotexpert/mbed-os-emwin-epd" for this fix.)

Regards,
Shimamura

0 Likes

Simamura,

Thank you for the code correction.  

Your replacement LCDConf.c did work.   For some reason my version was missing LCD_GetDisplayBuffer().

Len
"Engineering is an Art. The Art of Compromise."
0 Likes