D:SoftwareKeil5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No such file or directory

1. 错误提示信息:

D:SoftwareKeil5ARMPACKKeilSTM32F1xx_DFP2.1.0DeviceIncludestm32f10x.h(483): error:  #5: cannot open source input file "core_cm3.h": No such file or directory

2. 解决方法

  • 找到Kevil5安装目录下的include文件夹,添加 core_cm3.h文件,重新编译。
  • core_cm3.h可以在stm32官方固件库中找到,下载固件库即可。

   

         

         

3. 再次编译结果

原文地址:https://www.cnblogs.com/kevin-hou1991/p/15181734.html