- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ~ all,
I use Cap sense sample code but there are 2 error messages in the following description.
Could anyone know what happened ?!
main.c:121:55: error: 'CapSense_BUTTON0_WDGT_ID' undeclared (first use in this function)
CapSense_BUTTON0_WDGT_ID,
^
main.c:121:55: note: each undeclared identifier is reported only once for each function it appears in
main.c:122:55: error: 'CapSense_BUTTON0_SNS0_ID' undeclared (first use in this function)
CapSense_BUTTON0_SNS0_ID
^
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
Thank you so much.
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just tried again and I found there were no button in the cap sense block. After I add a new one, no error messages now. Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tim,
This is mostly because of the Capsense Component name on your TopDesign is named as other than "Capsense"
or the Button name is not "Button0" in the Capsense component configurator:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just tried again and I found there were no button in the cap sense block. After I add a new one, no error messages now. Thank you for your help.