2011-05-16 08:12 PM
Just trying to build the STM32-Discovery demo code using the IAR Embedded Workbench - Kickstart (V6.0) on a Windows 7 machine (32 bit).
I downloaded the firmware, followed the instructions in UM0985 (User manual), and at the ''Rebuild All'' step (page 6) I get 72 errors; nearly all of them of the form:
Error[Pe147]: declaration is incompatible with ...
I can't build any of the Discovery demo code without similar errors. I load the example workspace as indicated, change nothing, and still lots-o-errors.
Any idea regarding what's up?
Thanks, Dave,
2011-05-17 11:32 AM
I am having the exact same problem trying to compile the iNemo demo firmware. I hope IAR systems or ST have a solution. Its obvious they did not develop the code using the KickStart version.
2011-05-17 01:44 PM
Just an FYI, I was able to compile, download, and run a very complex project for the DSO nano oscilloscope. I just had to fix a couple of paths (linker script etc.). Yet these simple demos will not compile?
2011-05-18 09:28 AM
I got this response from IAR support:
''
It seems that ST hasn't upgraded the project yet for EWARM V6.0. The
examples are for V5.x.
Anyhow, in order to work with V6.0 you need to add the attached file to yourproject and override the previous one.Just copy it to: .\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupportThe problem is that the core_cm3.h is not compatible anymore with theintrinsics.h from IAR.I would also suggest using the EWARM V6.20 that is our latest versionsavailable at:2011-05-18 05:34 PM
FYI, the fix above from IAR worked for me. I also received the following response from ST support. I have not confirmed it works, but thought I'd post it just in case anyone might need it ...
*************************************************************************************************
Hello,
The problem you are seeing is due to the new 6.20 release of IAR. There is a new handling of the CMSIS library that is now natively included into this release (for more details, see IAR 6.20 release note).
As a consequence, the project preprocessor inclusion of the folder containing ''core_cm3.h'' is obsolete and conflicts with the automatic inclusion of IAR ''intrinsics.h.''
You need to follow these two steps to solve the issue:
- Check ''Use CMSIS'' option from: Project options > General Options > Library Configuration
- Remove the CMSIS header files folder from the project preprocessor definitions (Project options > C/C++ compiler > Preprocessor
Please follow these two steps and then try to recompile your project.
Best regards,
MCU-Tech support
2011-07-07 08:35 AM
----------------------------------------------------------------------------------------------------------------------
Anyhow, in order to work with V6.0 you need to add the attached file to your
project and override the previous one. Just copy it to: .\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport ---------------------------------------------------------------------------------------------------------------------- Thanks David, It works for me, but there are some warning like Warning[Pa050]: non-native end of line sequence detected (this diagnostic is only issued once) D:\MCU_Prog\ARM_IAR\stm32vldiscovery_package\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1 But, ---------------------------------------------------------------------------------------------------------------------You need to follow these two steps to solve the issue:
- Check ''Use CMSIS'' option from: Project options > General Options > Library Configuration
- Remove the CMSIS header files folder from the project preprocessor definitions (Project options > C/C++ compiler > Preprocessor
Please follow these two steps and then try to recompile your project.
-------------------------------------------------------------------------------------------------------------------------
this method does not work, anyway, thanks for sharing info
2011-07-08 10:21 AM
Copy the attched file intrinsics.h at path
C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c
this will solve the compilation problem.
Just for your information kickstart version supports code size up to 32KB
2011-07-10 04:35 AM
+-------------------------------------------------------------------------------------------------------------+
this will solve the compilation problem.
+--------------------------------------------------------------------------------------------------------------+ Thanks, Pila, it works perfectly without warning. Aung