1、编译提示
错误信息是“..OBJLED.axf: error: L6002U: Could not open file ..objmain.o: No such fi”、、、
.OutputSTM32-DEMO.axf: error: L6002U: Could not open file ..outputcore_cm3.o: No such file or directory等类似问题?
我的解决方案:
计算机右键-属性-高级系统设置-高级-环境变量-XX的用户变量(xx是用户名一部分) 里面的temp 和tmp路径是%userprofile%开头,把两个%userprofile%替换成c:userdefault。这样临时文件就不用存到有中文的路径了。原来的%userprofile%默认是c:user中文用户名。
2、如果之前学过51使用的是keil4,现在学习32使用keil5.会出现一种情况就是之前用keil4建立的工程,现在的默认打开方式为keil5?
我的解决方案:
- KEIL4与KEIL5不能同时安装在同一个文件夹里,这一点安装的时候要注意!
最好手动设置安装路径,再激活(你懂得) 如图:

按win+r键运行,输入regedit进入注册表,再进入HKEY_CLASSER_ROOT选项

下拉滑动条找到UVPROJFILE(KEIL4工程文件类型)和UVPROJXFILE(KEIL5工程文件类型)

分别修改command的值为你相应KEIL版本的exe启动文件路径,一般为“盘:软件根目录UV4Uv4.exe”如图所示:(修改方法是右键点击名称下的“默认”,之后选择“修改”。我当时在这块出现了问题,所以特意标注出来)



- 到此就完成了。
- 最后再次声明,以上方法均为是本人亲自在网上查找测试的,而且只是解决了我个人的问题,并不能保证可以解决所有类似问题。我只是做了一个整理,方便有需要的学习者快速解决问题。(最好,我还是建议大家自己去解决问题,因为成功之后,会给自己带来很大的自信。)
一周热门 更多>