PSOC 6 GraphicLCDIntf 1.80 conflict with GPIO API

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

cross mob
VlYe_281166
Level 4
Level 4
25 replies posted 10 replies posted 10 questions asked

When using GraphicLCDIntf  (e.g. in Ce222221_Voice_Recorder example) changing GraphicLCDIntf from v.1.0 to v.1.80 causes errors:

undefined reference to `Cy_GPIO_Clr',

undefined reference to `Cy_GPIO_Set'

so, using Pins became inavailable.

At the first glance I could not find what is the reason.

Generated API files are the same.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes, I was able to reproduce your issue. For some reason, the GPIO functions weren't getting referenced. Please do the following and then it will work.

The error shows in tft_display.c. Open the file and include the following header file:

#include "gpio/cy_gpio.h"

I have included the updated project and the tft_display.c file for reference which builds successfully.

Regards,

Dheeraj

View solution in original post

1 Reply
lock attach
Attachments are accessible only for community members.
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes, I was able to reproduce your issue. For some reason, the GPIO functions weren't getting referenced. Please do the following and then it will work.

The error shows in tft_display.c. Open the file and include the following header file:

#include "gpio/cy_gpio.h"

I have included the updated project and the tft_display.c file for reference which builds successfully.

Regards,

Dheeraj