Keil  vision5编译时出error:  #5: cannot open source input file "core_cm3.h": No such file or directory

时间:2018-11-15
本文章向大家介绍keil编译运行错误,缺少error:#5:#include "core_cm3.h"解决方法,需要的朋友可以参考一下

用Keil  vision5编译时出现以下错误:
error:  #5: cannot open source input file "core_cm3.h": No such file or directory。

这是因为装的MDK版本太新了,比如MDK5.12/5.13,它们不会从MDK安装目录去查找头文件。 所以导致这个错误。

解决方法如下:
点击魔术棒——

添加文件路径;

找到KEIL软件的安装路径找到CMSIS\Include,包含进去即可;比如——D:\Keil_v5\ARM\Pack\ARM\CMSIS\4.2.0\CMSIS\Include

编译通过!!!