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?
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.
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.