我想删除设备(PIC18F45 K50),并将两个单独的.HEX文件编程到DIVIE中,一个引导加载程序和实际固件。我尝试了这个脚本:回声擦除DEVICEPK2CM50-PIC18F45 K50/E/J/RCHO程序BooLoad Pk2CMD -PIC18F45 K50-FBOTLoop.HEX/MP/J/ReCHO程序固件K2CMD -PIC18F45 K50-FFMRMLASE.HEX/MP/J/ReRASE和第一个编程工作,但第二个失败:PoPIIT 2程序报告24-2017,20:18:37设备类型:PIC18F45 K50程序内存错误,地址为好的9000FFFFF 66AF8SO,我猜PK2CMD也预期固件没有覆盖的区域。需要检查HEX文件为空吗?WBR-库斯蒂
以上来自于百度翻译
以下为原文
I want to erase the device (PIC18F45K50) and program two separate .hex files into the devie, a bootloader and the actual firmware.
Can I do this with pk2cmd and how?
I tried this script:
echo Erase device
pk2cmd -pPIC18f45k50 /e /j /r
echo Program bootloader
pk2cmd -pPIC18f45k50 -fbootloader.hex /mp /j /r
echo Program firmware
pk2cmd -pPIC18f45k50 -ffirmware.hex /mp /j /r
Erase and the first programming works, but the second fails with:
PICkit 2 Program Report
24-7-2017, 20:18:37
Device Type: PIC18F45K50
Program Memory Errors
Address Good Bad
000000 00FFFF 006AF8
So I guess pk2cmd expectS that also the area not covered by the firmware .hex file needs to be checked to be empty?
wbr Kus
ti