This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

  • 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