编译提示错误:../Drivers/CMSIS/Include/core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
大哥,我在编译器里设置宏定义ARM_MATH_CM4后这个错误不报了
又出现这个错误:
test1\test1.axf: Error: L6218E: Undefined symbol arm_cfft_f32 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_cfft_sR_f32_len1024 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_cmplx_mag_f32 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_max_f32 (referred from main.o).
求解,谢谢
现在我修改了程序,给FFT的输入buf单独写了个data.c(也还原论坛上有个师兄代码)编译后出现../Drivers/CMSIS/Include/core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
这个是他的帖子:https://www.stmcu.org.cn/module/ ... 2&highlight=fft
后来我参照这个帖子修改成功,http://home.eeworld.com.cn/my/space-uid-53362-blogid-255017.html
评分
查看全部评分
这里有相关文档可以参考。
https://www.stmcu.org.cn/document/list/index/category-757
Keil中使用STM32F4xx硬件浮点单元
大哥,我在编译器里设置宏定义ARM_MATH_CM4后这个错误不报了
又出现这个错误:
test1\test1.axf: Error: L6218E: Undefined symbol arm_cfft_f32 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_cfft_sR_f32_len1024 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_cmplx_mag_f32 (referred from main.o).
test1\test1.axf: Error: L6218E: Undefined symbol arm_max_f32 (referred from main.o).
求解,谢谢
现在我修改了程序,给FFT的输入buf单独写了个data.c(也还原论坛上有个师兄代码)编译后出现../Drivers/CMSIS/Include/core_cm4.h(129): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
这个是他的帖子:https://www.stmcu.org.cn/module/ ... 2&highlight=fft