你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

STM32L4 FFT 自带arm_math.h编译不成功

[复制链接]
MrLi... 提问时间:2016-9-21 17:25 /
编译提示错误:../Drivers/CMSIS/Include/core_cm4.h(129): error:  #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"

程序如附件

求解,谢谢

test1.rar

下载

9.4 MB, 下载次数: 23, 下载积分: ST金币 -1

收藏 1 评论5 发布时间:2016-9-21 17:25

举报

5个回答
MrLi... 最优答案 回答时间:2016-10-9 10:23:21
MrLi... 发表于 2016-9-22 10:59
现在我修改了程序,给FFT的输入buf单独写了个data.c(也还原论坛上有个师兄代码)编译后出现../Drivers/CMSI ...

后来我参照这个帖子修改成功,http://home.eeworld.com.cn/my/space-uid-53362-blogid-255017.html

评分

参与人数 1ST金币 +2 收起 理由
zero99 + 2

查看全部评分

xmshao 回答时间:2016-9-22 08:17:27
本帖最后由 xmshao 于 2016-9-22 08:22 编辑

这里有相关文档可以参考。
https://www.stmcu.org.cn/document/list/index/category-757

Keil中使用STM32F4xx硬件浮点单元             
MrLi... 回答时间:2016-9-22 09:14:06
xmshao 发表于 2016-9-22 08:17
这里有相关文档可以参考。
https://www.stmcu.org.cn/document/list/index/category-757

大哥,我在编译器里设置宏定义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).
求解,谢谢
高二毛 回答时间:2016-9-22 10:10:02
头文件加载了嘛,math库的
MrLi... 回答时间:2016-9-22 10:59:58
高二毛 发表于 2016-9-22 10:10
头文件加载了嘛,math库的

现在我修改了程序,给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

所属标签

相似问题

官网相关资源

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
微信公众号二维码 微信公众号
手机版二维码 手机版