cancel
Showing results for 
Search instead for 
Did you mean: 

define ARM_MATH_XX

zamek42
Associate II
Posted on October 07, 2016 at 09:21

Hi All,

I made a project with CubeMX 4.16.1. I want to use FreeRTOS as a 3rd party lib. 

I generate the code to SW4STM32 because I use Eclipse CDT. When I want to compile it, I've  got some error:

First: in arm_math.h it needs stdint.h because there are a lot of uintxx_t. 

Second: thre is an error: &sharperror ''Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS or ARM_MATH_CM0''

My questions are:

- what is the main config file, where I need to define ARM_MATH_ version?

- may I modify arm_math.h to include stdint.h, or is there any better place (header file)?

thx,

Zamek

#cubemx-stm32
2 REPLIES 2
slimen
Senior
Posted on October 07, 2016 at 16:43

Hello,

You should include arm_math.h and define in the complier preprecessor setup 'ARM_MATH_CMx': (refer to this

http://www.keil.com/pack/doc/CMSIS/DSP/html/index.html

)

Regards

zamek42
Associate II
Posted on October 09, 2016 at 21:39

Hi,

Thx for your replay, but the problem wasn't the include. I found it, I need to set -DARM_MATH_4 for the compiler options.

thx,

Zamel