|
参考了网友的方法:https://www.amobbs.com/forum.php ... ght=hex%E8%BD%ACbin
用命令fromelf.exe --bincombined --bincombined_base=0x00003000 -o "$L@L.bin" "#L"。
执行命令后,输出信息如下:
Build target 'FLASH'
linking...
Program Size: Code=17440 RO-data=380 RW-data=276 ZI-data=9412
FromELF: creating hex file...
User command #1: fromelf.exe --bincombined --bincombined_base=0x00003000 -o "D:\lpc1752main\GPIO\FLASH\GPIO.bin" "D:\lpc1752main\GPIO\FLASH\GPIO.axf"
"D:\lpc1752main\GPIO\FLASH\GPIO.axf": Error: Q0471E: Base address 0x00003000 is above start address 0x000002fc of load region #0
Finished: 0 information, 0 warning and 1 error messages.
".\FLASH\GPIO.axf" - 0 Error(s), 0 Warning(s).
找到了文件startup_LPC17xx.s。把红框内容注释了就可以了。注释掉有什么风险?不注释直接+0x3000是否正确做法?
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|