Keil报错:cannot open source input file "core_cmInstr.h" 解决办法

简介: Keil报错:cannot open source input file "core_cmInstr.h" 解决办法

前言

前几天在面包板社区申请了一块uFun开发板,昨天刚到手,在烧录Demo程序的时候遇到一个问题,就是Keil打开工程,编译,报很多错误 cannot open source input file"core_cmInstr.h,然后搜索了一些资料,最后解决了这个小问题,以下是解决办法。


Demo程序文件夹里有两个Keil的工程文件,一个是Keil4对应的,一个是Keil5的,可以说uFun还是考虑的挺周到的。

640.jpg


编译报错,cannot open source input file "core_cmInstr.h,找不到这个头文件,38个Error都是这个问题。

640.jpg


从文件名来看,这个头文件应该是内核相关的文件,于是在电脑本地搜索这个文件,终于在Keil的安装目录下搜索到了这个文件,我的是在 E:\Keil_v5\ARM\Pack\ARM\CMSIS\4.3.0\CMSIS\Include这个文件夹下:

640.jpg


知道了文件在哪里,我们直接手动指定头文件路径不就行了:

640.jpg


好了,终于下载成功了。打开串口助手,波特率115200,可以看到程序启动的一些LOG

目录
相关文章
|
11月前
用IAR打开STM8时,出现“Unable to create configuration 'Debug' using tool chain ‘STM8’
用IAR打开STM8时,出现“Unable to create configuration 'Debug' using tool chain ‘STM8’
288 0
|
13天前
|
Windows
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
|
8月前
|
C++
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
解决方案-CMake error: error in configuration process, project files may be invalid(Windows&VS可参考)
1350 0
|
10月前
新版Jadx 加载dex报错 jadx.plugins.input.dex.DexException:Bad checksum 解决方法
新版Jadx 加载dex报错 jadx.plugins.input.dex.DexException:Bad checksum 解决方法
|
1月前
|
Go C语言
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
安装go-sqlite3包时报exec: "gcc": executable file not found in %PATH%解决办法
|
1月前
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
解决运行qmake:Project ERROR: Cannot run compiler ‘cl‘. Output:
278 0
|
Java
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
1627 1
|
PyTorch 算法框架/工具 C++
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
|
Linux 开发工具
Too many open files 解决办法
还在等什么,快来一起讨论关注吧,公众号【八点半技术站】,欢迎加入社群
|
C++
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
编译JDK11:ERROR: Build failed for target ‘default (exploded-image)‘ in configuration ‘windows-x86_64
221 0