-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Operating System
Windows 11
Commit SHA
Board
stm32n6
Firmware
examples/device/cdc_msc
What happened ?
Build fails with the following errors:
cdc_msc - Debug
system_stm32n6xx_fsbl.o
SAU->RNR = 0;
^
Error[Pe020]: identifier "SAU" is undefined D:\projects\SC3\test\BB\tinyusb\hw\mcu\st\cmsis_device_n6\Source\Templates\system_stm32n6xx_fsbl.c 192
SCB_NS->CPACR |= ((3UL << 20U)|(3UL << 22U)); /* set CP10 and CP11 Full Access */
^
Error[Pe020]: identifier "SCB_NS" is undefined D:\projects\SC3\test\BB\tinyusb\hw\mcu\st\cmsis_device_n6\Source\Templates\system_stm32n6xx_fsbl.c 265
CMSE_NS_ENTRY uint32_t SECURE_SystemCoreClockUpdate(void)
^
Error[Pe020]: identifier "__cmse_nonsecure_entry" is undefined D:\projects\SC3\test\BB\tinyusb\hw\mcu\st\cmsis_device_n6\Source\Templates\system_stm32n6xx_fsbl.c 470
CMSE_NS_ENTRY uint32_t SECURE_SystemCoreClockUpdate(void)
^
Error[Pe101]: "uint32_t" has already been declared in the current scope (at line 30 D:\projects\SC3\test\BB\tinyusb\hw\mcu\st\cmsis_device_n6\Source\Templates\system_stm32n6xx_fsbl.c 470
of "C:\iar\ewarm-9.70.2\arm\inc\c\stdint.h")
CMSE_NS_ENTRY uint32_t SECURE_SystemCoreClockUpdate(void)
^
Error[Pe065]: expected a ";" D:\projects\SC3\test\BB\tinyusb\hw\mcu\st\cmsis_device_n6\Source\Templates\system_stm32n6xx_fsbl.c 470
Total number of errors: 5
This is IAR issue that __ARM_FEATURE_CMSE is set internally to 1, and I have no idea how to change it. it complains if you try to override it in source code with a define.
I have tried with iar 9.60.4 and 9.70.2.
If you confirm that is is purely IAR internal error, and there is no way to set __ARM_FEATURE_CMSE=3 in Cmake I can push this issue with IAR. Thanks.
I have tried to set target in configuration to CM55 or select dev kit, but it is not helping
How to reproduce ?
- create new project from CMAKE
- point to CmakeLists.txt from tinyusb\examples\device\cdc_msc\
- select correct preset
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
none
Screenshots
No response
I have checked existing issues, discussion and documentation
- I confirm I have checked existing issues, discussion and documentation.