Open calebchalmers opened 3 weeks ago
stm32f427xx.h
must be included first, otherwise arm_math_types.h
will choose the wrong defaults. This is a bug in modm's include order, we should probably explicitly include <modm/platform/device.hpp>
inside arm_math_types.h
?
@salkinium that makes sense to me, since device.hpp
would contain the relevant configuration.
Are these lines in arm_math_types.h
necessary?
#define ARM_MATH_CM4
#define __ARM_FEATURE_MVE 0
I can't see any reference to ARM_MATH_CM4
, and from what I can tell, not defining __ARM_FEATURE_MVE
would be sufficient rather than defining it to be 0?
I'm thinking we can replace all the current defines in arm_math_types.h
with a device.hpp
include.
While compiling an STM32F427 project with arm-none-eabi-gcc 13.2.rel1-2, I'm seeing several warnings of the following form:
These warnings ultimately boil down to
arm_math_types.h
andstm32f427xx.h
both being included and both defining__FPU_PRESENT
.I see that
arm_math_types.h
has a guard in place butstm32f427xx.h
does not, and in my case, the latter is usually being included first.Apologies since I'm not familiar with CMSIS; if this is a question for one of the ARM repos please let me know and I'll submit it over there instead.