CapSense on CY8CKIT-049-42xx PSoC 4

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi Everyone

   

I'd like to set up the CapSense [CSD v2.0] on CY8CKIT-049-42xx PSoC 4 with the onboard bootloader, but if I follow the example posted here I get this error messages:

   

implicit declaration of function 'CapSense_Start' [-Wimplicit-function-declaration]

   

implicit declaration of function 'CapSense_InitializeAllBaselines' [-Wimplicit-function-declaration]

   

implicit declaration of function 'CapSense_UpdateEnabledBaselines' [-Wimplicit-function-declaration]

   

implicit declaration of function 'CapSense_ScanEnabledWidgets' [-Wimplicit-function-declaration]

   

implicit declaration of function 'CapSense_IsBusy' [-Wimplicit-function-declaration]

   

implicit declaration of function 'CapSense_GetCentroidPos' [-Wimplicit-function-declaration]

   

Build error: undefined reference to `CapSense_Start'

   

Build error: undefined reference to `CapSense_InitializeAllBaselines'

   

Build error: undefined reference to `CapSense_UpdateEnabledBaselines'

   

Build error: undefined reference to `CapSense_ScanEnabledWidgets'

   

Build error: undefined reference to `CapSense_IsBusy'

   

Build error: undefined reference to `CapSense_GetCentroidPos'

   

I attached the project to simplify the diagnostic.  I don't know if there's a directive of protection on flash memory in this case (talking of bootloader). It could be, but the problem is elsewhere; I believe...

   

Thanks in advance.

0 Likes
8 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the fascinating world of PSoCs!

   

That is just a typo:Your component is named "CapSense_1". When you rename it to "CapSense" the errors shown will disappear. With some bad luck, some new errors may pop up.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

You will also have to fix the dependencies for the bootloader as that is still

   

producing an error.

   

 

   

    

   

          

   

http://www.cypress.com/?rID=50230     AN68272 UART BL

   

http://www.cypress.com/?rID=41002     AN60317 I2C BL

   

http://www.cypress.com/?rID=57561     AN73503 USB HID BL with GUI Host

   

http://www.cypress.com/?rID=56014     PSoC® 3, PSoC 4, and PSoC 5LP Introduction To Bootloaders

   

 

   

Regards, Dana.

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

Thank you everyone, but even if the software is compiled, it doesn't work.

   


I followed  your tips; for example to rename the component to "capsense" or to add the dependencies to the bootloader through the setting of UART_Bootloader (hex/elf files) into "bootlodable" component after insertion of project such as part of SCB_Bootloader sub-group example projects. So, with this tips the compiling round off, but it doesn't work still...

   

I even set up the Design-Wide Resources like this...

   

   

and in this picture I show you the physical connection from cap_panel (that I made) to the board http://goo.gl/EoFUDk .

   

I have no idea what is wrong. Could you help me?

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

in main.c line 40 to 43 you have a dead-loop that just prints.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Indeed Bob!

I forgot that loop for mistake; but it doesn't import, because it should have already commented before posting the zip file.

I apologize for this forgetfulness.

   



It was only a simple test for serial component, that hasn't worked to me... (with Putty...)


Anyway, if you delete the loop, the program doesn't work. Tomorrow, I shall try again...

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Since you are not using the Pioneer Kit but the Prototype board the question is: Where do you have got the pcb patterns from to make a linear slider? How did you make the connections??

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi Bob.

   

Just today, I improved my code and I solved some problem with Serial and CapSense, that now work (even if I think not properly...).

   

I made a simple linear pcb pattern with 5 rectangular pads on a piece of copper plate, that I painted to protect the touch zones. It work! But I'm looking for to improve the pattern.

   


It should have been used for a simple pattern of touch buttons, but I developed a linear slider to start from a known example.

   

If I solve all problems, I will post this project on my blog; this in the next future.

   

Thanks!

0 Likes
Anonymous
Not applicable

There is a video on PSoC Creator 101 series that explain a "similar" project...

0 Likes