前言:
本人项目需要使用到STM32,故需配置keil 5,在配置时遇到了以下问题,并找到相应的解决方案,希望能够为遇到相同问题的道友提供一些解决思路
1、提示缺少(missing)version 5编译器
step1:找到编译器存放目录

step2:把ARMCC放置编译器的存放目录中,存放后效果如图所示:
注:ARMCC文件夹在文本开头,如有需要可自信下载

Step3::keil软件配置version5编译器



step4:配置完成后,关闭配置窗口,重新指定编译器为version5编译器,即可编译
2、编译报错信息:*** Target 'MiniBalance' uses RTOS support that is part of a Legacy Pack. The Legacy Pack is not installed on your computer - to download the missing Legacy Pack visit: www.keil.com/mdk5/legacy *** Rebuild aborted. Build Time Elapsed: 00:00:00
Step1:在网址中输入报错信息所提供的网址(www.keil.com/mdk5/legacy)进入到该网页

Step2:根据自己的硬件,点击相应的下载链接(蓝色字体)

Step3:下载完成后,进行安装,即可解决报错
3、报错信息:.\MiniBalance.axf: error: L6050U: The code size of this image (35650 bytes) exceeds the maximum allowed for this version of the linker.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\MiniBalance.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:07

问题出现原因:keil没有激活mdk(mdk与c51需要的激活码不一样),需自行激活