IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 嵌入式 -> STM32F407用STM32 Cube Mx 生成工程文件报错../Core/Inc/stm32f4xx_hal_conf.h(282): error: #5: cannot open sourc -> 正文阅读

[嵌入式]STM32F407用STM32 Cube Mx 生成工程文件报错../Core/Inc/stm32f4xx_hal_conf.h(282): error: #5: cannot open sourc

STM32F407用STM32 Cube Mx 生成工程文件报错,提示找不到 stm32f4xx_hal_exti.h?文件。

CubeMx版本 6.2.0 ,

HAL库版本? ??STM32Cube_FW_F4_V1.19.0、STM32Cube_FW_F4_V1.21.0、STM32Cube_FW_F4_V1.26.1

报错原因:STM32 Cube Mx是新版的,生成的hal_confg.h里面带了#include stm32f1xx_hal_exti.h但是RTT里面的是库不是最新的,里面没有这个文件,所以就报错了。解决办法:自行添加该文件到工程目录下或是将HAL库更新至最新版本即可。使用STM32Cube_FW_F4_V1.19.0以及STM32Cube_FW_F4_V1.21.0均相同错误,更新至STM32Cube_FW_F4_V1.26.1版本的库后编译通过。

Build target 'leds
assembling startup_stm32f407xx.s...
compiling stm32f4xx_hal_tim.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c: 0 warnings, 1 error
compiling stm32f4xx_it.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Core/Src/stm32f4xx_it.c: 0 warnings, 1 error
compiling stm32f4xx_hal_flash_ex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_gpio.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hal_rcc.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_hal_tim_ex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_flash.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c: 0 warnings, 1 error
compiling stm32f4xx_hal_rcc_ex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_flash_ramfunc.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c: 0 warnings, 1 error
compiling stm32f4xx_hal_msp.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Core/Src/stm32f4xx_hal_msp.c: 0 warnings, 1 error
compiling gpio.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Core/Src/gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hal_exti.c...
"no source": Error: ?#5: cannot open source input file "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c": No such file or directory
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c: 0 warnings, 1 error
compiling main.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Core/Src/main.c: 0 warnings, 1 error
compiling stm32f4xx_hal_dma_ex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c: 0 warnings, 1 error
compiling stm32f4xx_hal_cortex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c: 0 warnings, 1 error
compiling stm32f4xx_hal.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c: 0 warnings, 1 error
compiling stm32f4xx_hal_pwr_ex.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c: 0 warnings, 1 error
compiling system_stm32f4xx.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Core/Src/system_stm32f4xx.c: 0 warnings, 1 error
compiling stm32f4xx_hal_dma.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c: 0 warnings, 1 error
compiling stm32f4xx_hal_pwr.c...
../Core/Inc/stm32f4xx_hal_conf.h(282): error: ?#5: cannot open source input file "stm32f4xx_hal_exti.h": No such file or directory
? ? #include "stm32f4xx_hal_exti.h"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c: 0 warnings, 1 error
"leds\leds.axf" - 20 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: ?00:00:14

  嵌入式 最新文章
基于高精度单片机开发红外测温仪方案
89C51单片机与DAC0832
基于51单片机宠物自动投料喂食器控制系统仿
《痞子衡嵌入式半月刊》 第 68 期
多思计组实验实验七 简单模型机实验
CSC7720
启明智显分享| ESP32学习笔记参考--PWM(脉冲
STM32初探
STM32 总结
【STM32】CubeMX例程四---定时器中断(附工
上一篇文章      下一篇文章      查看所有文章
加:2021-08-02 10:57:40  更:2021-08-02 10:57:58 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年12日历 -2024/12/27 10:19:32-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码
数据统计