2012-03-27 08:50 AM
Has anyone got this to compile.
I downloaded it and selected the virtual comport demo. Compiled it for STM32L152-EVAL board using IAR tools and there are 143 errors. core_cm3.c '' core does not support this register '' et alThe build is set for the target board. Its almost as though the target processor is wrongAny ideas ? #iar-compiler-errors2012-03-27 06:44 PM
This can be because of the IAR tool chain changes from v6.2x onwards. (new intrinsics added which are conflicting with CMSIS headers )
Try the followingOpen the Project -> General Option -: Library configuration, Click/Check on ''USE CMSIS''
Go to Preprocessor settings [Project>Options>C/C++ Compiler>Preprocessor] Remove: $PROJ_DIR$\..\..\..\Libraries\CMSIS\CM3\CoreSupport2012-03-28 01:36 AM
I have tried this
Project -> Options -> General Options - Library Configuration tabThe ''USE CMSIS'' radio button is greyed out. I can't ungrey it with any combination of settings. Is there something I need to do first?I am completely new to this tool chain2012-03-28 10:16 AM
Which IAR version you have installed ?
2012-03-29 01:41 AM
Version of ewb IS 6.30.7.3447
Common components V6.3.17.22182012-03-29 05:01 AM
''The ''USE CMSIS'' radio button is greyed out. I can't ungrey it with any combination of settings. Is there something I need to do first?''
This is surprising. Can you pls try to open any other workspace to verify if this option is Greyed out in them as well ? Maybe use any example from ST web. If this is still the case, maybe IAR is not installed properly. i can't think of any other reason. Also you can check that the folder is Not Read-only in windows-explorer..2012-03-29 08:36 AM
Solution is as described above by Alokm.
The reason the ''USE CMSIS'' radio button is grayed out is because when you open an ST example the target processor is not setup for some reason.You need to go to Project->Options->C Compiler and set the Target, then follow the instructions above.