久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2619|回復: 0
打印 上一主題 下一主題
收起左側

STM32F407用Cube Mx生成工程文件報錯cannot open source input file "stm32f4xx

[復制鏈接]
跳轉到指定樓層
樓主
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


分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 日本三级做a全过程在线观看 | 99亚洲综合 | 欧美天堂| 久久精品国产一区 | 久久a久久 | 亚洲区中文字幕 | 91一区二区在线观看 | 国产精品视频久久久 | 国产成人免费网站 | 免费黄色录像视频 | 国产精品高潮呻吟久久av野狼 | 国产精品免费大片 | 亚洲一区二区三区欧美 | 午夜精品视频在线观看 | 日韩高清中文字幕 | 久久久中文 | 国产69久久精品成人看动漫 | 精久久久 | 成年人在线观看视频 | 日韩精品在线视频免费观看 | 黄色免费网站在线看 | 欧美在线视频免费 | 精品自拍视频在线观看 | 国产一区二区电影 | 精品久久久久久亚洲精品 | av大片在线观看 | 在线永久看片免费的视频 | 久久久91 | 亚洲国产网| 紧缚调教一区二区三区视频 | 成人毛片网 | 日韩一区二区三区视频在线播放 | 国产福利在线 | 国产一区二区三区免费观看在线 | 国产成人精品一区二区三区在线观看 | 日韩a在线| 婷婷综合网 | 日韩美女一区二区三区在线观看 | 国产一区二区三区 | 美女视频三区 | 99久久久无码国产精品 |