Keil Logo Arm Logo

ARMCM4.h compile error

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Jim Wei
Posted
28-Jan-2014 15:01 GMT
Toolset
ARM
New! ARMCM4.h compile error

Using uVision V5.1.0.0 with CMSIS V3.20, I include arm_math.h which in turn includes ARMCM4.h.

I got a compile error "C:\Keil\ARM\Pack\ARM\CMSIS\3.20.4\Device\ARM\ARMCM4\Include\ARMCM4.h(131): error: #20: identifier "__I" is undefined __I uint32_t ID; /* Offset: 0x000 (R/ ) Board and FPGA Identifier */

Why do I get this error? Can anyone help? Thanks!

Jim

Read-Only
Author
Martin Guenther
Posted
29-Jan-2014 08:53 GMT
Toolset
ARM
New! RE: ARMCM4.h compile error

Hello Jim Wei,

I think you are missing the define (ARM_MATH_CM4 | ARM_MATH_CM3 | ARM_MATH_CM0) for the core for which arm_math.h is used.
Please set e.g. ARM_MATH_CM3 under 'Options for Target - C/C++ - Define'.

Best Regards,
Martin Guenther

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

ARM’s Privacy Policy has been updated. By continuing to use our site, you consent to ARM’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.