error: #5: cannot open source input file core_cm3.h: No such file or directory
生活随笔
收集整理的這篇文章主要介紹了
error: #5: cannot open source input file core_cm3.h: No such file or directory
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
用Keil ?vision5編譯時出現以下錯誤:
D:\MDK\install\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(483): error: ?#5: cannot open source input file "core_cm3.h": No such file or directory。
這是因為你裝的MDK版本太新了,比如MDK5.12/5.13,它們不會從MDK安裝目錄去查找頭文件。 所以導致這個錯誤。
解決方法如下:
把圖片中的文件復制到keil軟件安裝的include目錄下:
D:\MDK\install\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include
在編譯結果成功:
總結
以上是生活随笔為你收集整理的error: #5: cannot open source input file core_cm3.h: No such file or directory的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 9.STM32中对SysTick_Ini
- 下一篇: keil5软件仿真出现unknown s