1

I am getting the error:

CMSIS/DSP/Include/arm_math.h:3943:3: error: unknown type name 'uint32_t'; did you mean 'wint_t'?

I could add stdint.h to the arm_math.h but I assume I did something wrong in the first place. Surely the CMSIS developer would have added an include if neccessary? Any suggestions what to do? I used arm-none-eabi-gcc.

Drimer
  • 93
  • 2
  • 14

1 Answers1

4

stdint.h is included in the header file for the relevant core, which - in turn - will be included as long as you define one of ARM_MATH_CM4, ARM_MATH_CM7, etc..

I could add stdint.h to the arm_math.h but I assume I did something wrong in the first place.

Yes: I think you just need to ensure that one of the afore-mentioned macros is defined.

From the CMSIS-DSP documentation:

Define the appropriate pre processor MACRO ARM_MATH_CM7 or ARM_MATH_CM4 or ARM_MATH_CM3 or ARM_MATH_CM0 or ARM_MATH_CM0PLUS depending on the target processor in the application.

David Collins
  • 2,852
  • 9
  • 13