Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

yuna_4671381
New Contributor

The device is developed using PSOC5 (PSoc Creator 4.3) on CY8C5888AXI-LP096.

Although cyPm.h is generated by the code generation at compile time, the following generated code causes a compile error.

         #define CY_PM_WFI asm volatile ("WFI \n")

"__asm" should be generated, but "asm" is generated.

Please tell me how to solve it.

0 Likes
1 Solution
ShipingW_81
Moderator
Moderator

To update the cy_boot, right click project and navigate to "Update Components" item. Click it and then the cy_boot shows as the following capture.

pastedImage_0.png

View solution in original post

0 Likes
5 Replies
ShipingW_81
Moderator
Moderator

I tried on my end that I have correct macro defined in line#205 cyPm.h -

#else   /* ASM for GCC & IAR */

        #define CY_PM_WFI       __asm volatile ("WFI \n")

    #endif /* (__ARMCC_VERSION) */

This file located in the following path on my end - C:\Program Files (x86)\Cypress\PSoC Creator\4.3\PSoC Creator\psoc\content\CyComponentLibrary\CyComponentLibrary.cylib\cy_boot_v5_90\PSoC5\API

What's your compiler used?

0 Likes
yuna_4671381
New Contributor

Thank you for your comment.

The compiler is using:

ARM GCC 5.4-2016-q2-update

Also, the gcc settings are attached.

01.png

02.png

03.png

04.png

05.png

06.png

07.png

08.png

09.png

10.png

0 Likes
ShipingW_81
Moderator
Moderator

Can you find out the specific cyPm.h file under your PSoC Creator installaiton path?

Is it correct or not correct? Generally, this file should has no such error.

0 Likes
yuna_4671381
New Contributor

I investigated PSoC Creator installaiton path.

cy_boot_v4_x is defined as "asm", and cy_boot_v5_x is defined as "__asm".

The file header of the automatically generated cyPm.h is as follows.

* File Name: cyPm.h

* Version 4.0

I assume that using v5 components will clear the error, but I don't know how to select the version of the cy_boot component.

Please teach me how to select the version of the cy_boot component.

0 Likes
ShipingW_81
Moderator
Moderator

To update the cy_boot, right click project and navigate to "Update Components" item. Click it and then the cy_boot shows as the following capture.

pastedImage_0.png

View solution in original post

0 Likes