2021-03-04 06:33 PM
IAR version is 9.10.1, the lib version is 1.5.0 for F0 device. The IAR expose a lot of faults about "core_cm0.h". I do not change anything, just open the project file under "EWARM", then compile.
Solved! Go to Solution.
2021-03-05 03:08 AM
Hi @Xwang.4 ,
In fact, this issue also appears when I used old release EWARM 8.50.6 and it’s caused by wrong path to core_cm0.h file.
Could you please try the following steps and let me know if that fixes your issue ?
\Project repository\STM32F0xx_StdPeriph_Lib_V1.5.0\Libraries\CMSIS\Include
Note: the project in "STM32F0xx_StdPeriph_Lib_V1.5.0" package was developed using an old IDE version (EWARM V7.30.3)
If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be very helpful for Community users to find this solution more quickly.
If you still need help, feel free to ask your question in more detail.
Imen
2021-03-04 10:47 PM
I never tried the SPL examples with IAR.
However, the CMSIS headers like core_cm0.h contain specific defines for several different toolchains.
You might need to set the IAR-specific define (__ICCARM__) on project level.
2021-03-04 11:36 PM
Hello @Xwang.4 and welcome to the STM32 Community =)
Can you please provide me with the project you are using, so that I can reproduce the error on my side?
Imen
2021-03-05 03:08 AM
Hi @Xwang.4 ,
In fact, this issue also appears when I used old release EWARM 8.50.6 and it’s caused by wrong path to core_cm0.h file.
Could you please try the following steps and let me know if that fixes your issue ?
\Project repository\STM32F0xx_StdPeriph_Lib_V1.5.0\Libraries\CMSIS\Include
Note: the project in "STM32F0xx_StdPeriph_Lib_V1.5.0" package was developed using an old IDE version (EWARM V7.30.3)
If this solves your problem, please mark my answer as "Best Answer" by clicking on the "Select as Best" button, this can be very helpful for Community users to find this solution more quickly.
If you still need help, feel free to ask your question in more detail.
Imen
2021-03-07 09:23 PM
Thanks, it can be compiled correctly.