1. MDK安装
MDK下载路径:https://www.keil.com/download/product/

注意:安装路径不能有空格否则会安装失败。
安装成功

2. Keil MDK模拟器STM32F103 PACK文件
下载地址: 百度网盘
下载成功后将Keil.STM32F1xx_DFP.2.3.0.pack文件导入

等待导入结束

3. 下载rt-thread simulator
下载完后解压:

双击打开project.uvprojx

4. 编译运行模拟器
编译: F7或者工具栏点击编译按钮。

编译出错了:

.\build\rtthread-stm32.axf: error: L6050U: The code size of this image (54876 bytes) exceeds the maximum allowed for this version of the linker.
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\build\rtthread-stm32.axf" - 1 Error(s), 0 Warning(s).
查了一下,是因为没有license……
获取License

弹出License Management界面,点击EvaluateMDK Professional按钮:

会弹出一个申请30免费使用的License HTML页面,按照要求填好相关信息并做人机身份验证。

填好后点击Submit按钮提交申请信息,成功后会通过邮件形式将License ID发送到指定邮箱。

30天的License来了

添加License ID:

再次编译,终于编译成功!
5. 调试
Ctrl+F5

进入到$Sub$$main(void)函数:

至此,RT-Thread环境搭建结束。
508

被折叠的 条评论
为什么被折叠?



