Announcements

Ever wondered how you could shape the future in collaboration with others? Join us at OktoberTech Asia Pacific and get inspired. Click here to sign up FREE of charge.

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

PSoC™ 6 Forum Discussions

Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

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
SuSh_1535366
Level 5
50 questions asked 50 replies posted 50 sign-ins
Level 5

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_Raj
Moderator
Moderator 250 replies posted 250 sign-ins 100 replies posted
Moderator

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
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

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
Aashita_Raj
Moderator
Moderator 250 replies posted 250 sign-ins 100 replies posted
Moderator

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
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

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
SuSh_1535366
Level 5
50 questions asked 50 replies posted 50 sign-ins
Level 5

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
Len_CONSULTRON
Level 9
1000 replies posted 750 replies posted 500 likes received
Level 9

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