Announcements

Robots are revolutionizing our lives in many ways. Join our webinar to learn about Infineon’s broad portfolio of robot building blocks.
Click here to register.

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

PSoC™ 4 Forum Discussions

adamelli2
Level 1
Level 1
First reply posted First like given First question asked

I have an old program. It contains:

 

TopDesign

→ TopDesign.cysch

→ TopDesign_01.cymacro [grayed out]

→ TopDesign_02.cymacro [grayed out]

 

Perhaps these files were lost somehow if this project was archived? I did not build nor maintain program. There are different errors that come up. I fixed some of them, but new ones pop up. I have a feeling it has something to do with these missing macro files. 

 

 

0 Likes
1 Solution
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @adamelli2 ,

This is due to the change in the CapSense component version, now currently in PSoC Creator 4.4, we use v7.0 which does not have same API's and generated macro's as older version. API'S used and macros used in the project depend on the component version. As this is the older version project it contains older version components. You can get to know about the component version by right clicking on the component and click on the open datasheet option .

There are a lot of complex changes required if we are changing an older version project. So we suggest you create a new project in PSoC4.4 (the latest version) and only make the required changes by referring to your old project.
The main error is CapSense_SELECT_WDGT_ID is not declared .please also try to declare CapSense_SELECT_WDGT_ID in source file.

Warm Regards,
Gautami J

View solution in original post

0 Likes
4 Replies
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @adamelli2 ,

Can you please let us know which version of PSoC Creator you are using and which kit you are using?

If possible please attach the error log.


Warm Regards
Gautami J

0 Likes

Version 4.4 but I tried it on 4.2 too. 

 

 

main.c:400:5: warning: implicit declaration of function 'CapSense_ProcessAllWidgets' [-Wimplicit-function-declaration]
The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
CapSense_ProcessAllWidgets();
^
main.c:403:5: warning: implicit declaration of function 'CapSense_ScanAllWidgets' [-Wimplicit-function-declaration]
CapSense_ScanAllWidgets();
^
Info: gde.M0106: Errors found while loading "[filepath\file].cydsn\TopDesign\TopDesign_02.cymacro" file. This file would not be considered in the update process.
main.c:406:11: warning: implicit declaration of function 'CapSense_IsBusy' [-Wimplicit-function-declaration]
while(CapSense_IsBusy());
^
main.c:412:16: warning: implicit declaration of function 'CapSense_IsWidgetActive' [-Wimplicit-function-declaration]
isSelect = CapSense_IsWidgetActive(CapSense_SELECT_WDGT_ID);
^
main.c:412:40: error: 'CapSense_SELECT_WDGT_ID' undeclared (first use in this function)
isSelect = CapSense_IsWidgetActive(CapSense_SELECT_WDGT_ID);

0 Likes
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @adamelli2 ,

This is due to the change in the CapSense component version, now currently in PSoC Creator 4.4, we use v7.0 which does not have same API's and generated macro's as older version. API'S used and macros used in the project depend on the component version. As this is the older version project it contains older version components. You can get to know about the component version by right clicking on the component and click on the open datasheet option .

There are a lot of complex changes required if we are changing an older version project. So we suggest you create a new project in PSoC4.4 (the latest version) and only make the required changes by referring to your old project.
The main error is CapSense_SELECT_WDGT_ID is not declared .please also try to declare CapSense_SELECT_WDGT_ID in source file.

Warm Regards,
Gautami J

0 Likes
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @adamelli2 ,

The thread was locked due to inactivity for a long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.

Thanks and Regards,
Gautami J
Cypress Semiconductor Corporation
An Infineon Technologies Company

0 Likes
This widget could not be displayed.