在Keil内调用Flash Magic命令行Flash ISP的应用方法
雁塔菜农 发表于 2007-3-9 13:14:00 0
hotpower 发表于 2007-3-9 12:53
ZLG-ARM ←返回版面
楼主: 在Keil内调用Flash Magic命令行Flash ISP的应用方法(菜农实验)
在Keil内调用Flash Magic命令行Flash ISP的应用方法(菜农三八节劳动实验):
1.在Tools菜单内打开Customize Tools Menu...
2.在Menu Content内加入
Program device with %H
3.在Command内加入
D:\Program Files\Flash Magic\FM.EXE
4.在Arguments内加入参数
DEVICE(LPC2138, 11.0592) COM(1,28800) HARDWARE(BOOTEXEC, 50, 250) ERASE(DEVICE, PROTECTISP) HEXFILE(#H, CHECKSUMS, NOFILL, PROTECTISP, CODEREADPROTECTION)
5.选中Run Minimized时DOS界面最小化
6.在Tools菜单内运行Program device with RTC.HEX(注:本例为RTC.HEX)
如果COM口不存在或在使用,则运行结果如下:
"D:\Program Files\Flash Magic\FM.EXE" DEVICE(LPC2138, 11.0592) COM(1,28800) HARDWARE(BOOTEXEC, 50, 250) ERASE(DEVICE, PROTECTISP) HEXFILE(D:\LPCARMWORK\RTC\RTC.HEX, CHECKSUMS, NOFILL, PROTECTISP, CODEREADPROTECTION)
Flash Magic Version 3.50.197
8051/XA Driver Version 2.31.196
ARM Driver Version 1.23.196
(C) Embedded Systems Academy 2000-2007 All rights reserved
Connection failed: COM Port error
如果COM口存在且未使用,则运行结果如下:
"D:\Program Files\Flash Magic\FM.EXE" DEVICE(LPC2138, 11.0592) COM(1,28800) HARDWARE(BOOTEXEC, 50, 250) ERASE(DEVICE, PROTECTISP) HEXFILE(D:\LPCARMWORK\RTC\RTC.HEX, CHECKSUMS, NOFILL, PROTECTISP, CODEREADPROTECTION)
Flash Magic Version 3.50.197
8051/XA Driver Version 2.31.196
ARM Driver Version 1.23.196
(C) Embedded Systems Academy 2000-2007 All rights reserved
Connected
Device selected
Erase complete (DEVICE)
Hex file programming complete (D:\LPCARMWORK\RTC\RTC.HEX)
菜地公告:引用本文必须注明出处!!!
雁塔菜农HotPower 2007.3.8 于西安大雁塔菜地 http://HotPower.21ic.org/