【无标题】

生成hex文件

打开一个keil工程,按如下顺序,将Create HEX File处打勾,编译无报错后,
然后打开你工程,默认情况下,编译生成的hex文件在你template.uvprojx工程的output->debug文件下

生成bin文件

这里介绍的是生成bin文件绝对路径的方式;
按如下顺序步骤,然后编译
在这里插入图片描述

Run #1 中的字符

fromelf --bin -o “$L@L.bin” “#L”

编译后,在下方信息框看到如下类似信息
在这里插入图片描述
在这里插入图片描述

After Build - User command #1: fromelf --bin -o “C:\my_word\linshi\HC32F460_DDL_Rev3.2.0\projects\ev_hc32f460_lqfp100_v2\template\MDK\output\debug\template.bin” “C:\my_word\linshi\HC32F460_DDL_Rev3.2.0\projects\ev_hc32f460_lqfp100_v2\template\MDK\output\debug\template.axf”
则代表生成成功,生成的bin文件路径就在template\MDK\output\debug下

KEIL报错 【 After Build - User command #1: D:\app\MDK\path\ARM\ARMCC\bin\fromelf.exe --bin --output ./output/debug/updata.bin ./output/debug/xxx.axf】

原因:Run #1 中配置错误,可能是调用keil生成bin文件工具错误,也可能是调用路径错误导致,修改成【 fromelf --bin -o “$L@L.bin” “#L” 】 即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值