我的mdk5出现这个问题,怎么解决
时间:10-02
整理:3721RD
点击:
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\position.c: 0 warnings, 1 error
compiling stm32f30x_it.c...
compiling i2c.c...
compiling quarternion.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\quarternion.c: 0 warnings, 1 error
compiling sliding_filter.c...
compiling mpu9250.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\mpu9250.c: 0 warnings, 1 error
compiling delay_dwt.c...
compiling flash.c...
compiling spi.c...
compiling spi_slave.c...
compiling uart.c...
compiling ringbuf.c...
compiling arm_cos_f32.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\..\Libraries\CMSIS\DSP_Lib\Source\FastMathFunctions\arm_cos_f32.c: 0 warnings, 1 error
compiling arm_sin_f32.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\..\Libraries\CMSIS\DSP_Lib\Source\FastMathFunctions\arm_sin_f32.c: 0 warnings, 1 error
".\Output\stm32f3.axf" - 5 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:11
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\position.c: 0 warnings, 1 error
compiling stm32f30x_it.c...
compiling i2c.c...
compiling quarternion.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\quarternion.c: 0 warnings, 1 error
compiling sliding_filter.c...
compiling mpu9250.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\User\Source\mpu9250.c: 0 warnings, 1 error
compiling delay_dwt.c...
compiling flash.c...
compiling spi.c...
compiling spi_slave.c...
compiling uart.c...
compiling ringbuf.c...
compiling arm_cos_f32.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\..\Libraries\CMSIS\DSP_Lib\Source\FastMathFunctions\arm_cos_f32.c: 0 warnings, 1 error
compiling arm_sin_f32.c...
D:\tools\mdk5\ARM\CMSIS1\4.5.0\CMSIS\Include\core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
..\..\Libraries\CMSIS\DSP_Lib\Source\FastMathFunctions\arm_sin_f32.c: 0 warnings, 1 error
".\Output\stm32f3.axf" - 5 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:11
是不是浮点开关设置的问题。
LZ,问题解决了么?