407使用FPU编译时报警告,求大神解惑

2019-07-20 03:54发布

..CMSIScore_cm4.h(112): warning:  #1215-D: #warning directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
        #warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
就报这个警告,没有理解是什么意思

但是我这两个都是定义了的,求大神解惑
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
11条回答
崔洪玮
2019-07-21 22:24
本帖最后由 崔洪玮 于 2019-2-1 13:48 编辑

哦,这个问题我也出现了,但最后检查发现是重复包含造成的

报错:Compiler generates FPU instructions for a devicewithout an FPU (check __FPU_PRESENT)原因:__FPU_PRESENT需要等于1,这个配置在stm32h7xx.h中进行了一次,但是在core_cm7.h仍然报错。重复包含,可能造成了编译顺序出问题stm32h7xx.h中包含了core_cm7.h,.c文件中又同时包含了两者

一周热门 更多>