背景
为了发布生产的固件,需要用到bin文件。
生成hex
在Keil中:Option - Output:
- `Create HEX file`
生成bin
在Keil中:Option - User - After Build/Rebuild
这个命令的意思是使用
fromelf.exe脚本 去转换#L(通配符)文件 并指定-o生成的文件为%L@L.bin(通配符) 文件。
此后再次重新编译工程,即可通过工程 的.axf文件生成 .bin文件。
为了发布生产的固件,需要用到bin文件。
在Keil中:Option - Output:
在Keil中:Option - User - After Build/Rebuild
这个命令的意思是使用
fromelf.exe脚本 去转换#L(通配符)文件 并指定-o生成的文件为%L@L.bin(通配符) 文件。
此后再次重新编译工程,即可通过工程 的.axf文件生成 .bin文件。
相关文章: