AC6 SW4 STM32 MCU Built-in Compiler Settings
Hello,
I use stm32f407 and stm32f405 for current development. I have some troubles with FP.
I colleague of mine found out, that in the AC6 SW4 STM32 MCU Built-in Compiler Settings entry (Properties -> C/C++ General -> Preprocessor Include Paths, Macros etc.) there might be wrong constants defined.
In particular for my cpu, there is:
- __ARM_ARCH=4
- __ARM_ARCH_4T=1
which I guess is wrong for stm32f4 cores. Should be ARMv7E-M according to ((https://en.wikipedia.org/wiki/ARM_architecture|WIKI)).
Following
- __SOFT_FP_=1
- __VFP_FP_=1
are both defined. I think there should be just one of these definitions according to “Floating point hardware used” selection in “MCU Settings”.
Please let me know if I’m right or wrong in my thoughts.
Regards,
Jan