http://lars.mec.ua.pt/public/LAR%20Projects/Humanoid/2011_WilliamLage/Guias%20e%20Tutoriais/MPLAB_IDE_8_56_Release_Notes/Readme%20for%20RealICECMD_ICD3CMD.txt
安裝完MPLAB IDE後到C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities
依燒入器型號找到相關CMD檔
例如 ICD3就找ICD3檔案夾裡的ICD3CMD.exe
該ICD3CMD.exe須執行於DOS下
執行後會有如下畫面
Description Options
----------------------------------------------------------------------------
Part/Device -P< art name>
Batch Mode Operation -B
Blank Check -C
Erase Flash -E
Hex File Selection -F<file>
Read to file -G<Region>F<file>
Region:
P= Program Memory
E= EEPROM
I= ID Memory
C= Configuration Memory
B= Boot Flash Memory
If no region is entered,
the entire device will be read
Hold in Reset -H
Release from Reset -L
High Voltage MCLR -I
Program -M<Region>
Region:
P= Program Memory
E= EEPROM
I= ID Memory
C= Configuration Memory
B= Boot Flash Memory
If no region is entered,
the entire device will be programmed
Program Memory Range -N####,####
#### is a hexidecimal number representing
Start and End Address in sequence
Reprogram -R<file>
SQTP File Selection -S<file>
Program Calibration memory -U##
## is a hexidecimal number representing
the least significant byte of the
calibration value to be programmed
Power Target(only for ICD3) -V<Voltage>
Verify -Y
Help -?
Exit Code -?E
---------------------------------------------------------------
燒入的步驟須先清除晶片再燒~也就是須先進行 -E 後再 -MP
EX.
ICD3CMD -P12F675 -E -Fd:\1.hex -MP -MI
解釋: -P12F675 選晶片型號
-E 清除晶片資料
-Fd:\1.hex 載入燒入檔d:\1.hex
-MP 燒入程式
EX.
ICD3CMD -P12F675 -GIFd:\yy.hex
解釋: -P12F675 選晶片型號
-GI G由晶片讀回資料,I只讀回ID memory
-Fd:\yy.hex 存hex格式資料於d:\yy.hex
------------------------------------------------------------
編譯前,已增加虛指令 __IDLOCS 5566
燒入完成後,執行ICD3CMD -P12F675 -GIFd:\yy.hex
yy.hex檔內容為
:020000040000FA
:084000000500050006000600A2
:0207FE00343491
:00000001FF
-----------------------------------------------
例如,要使用 ICD3 編程,可以運行以下命令:
> java -jar ipecmd.jar -P24FJ256GA705 -TPICD3 -M –F”<您的十六進製文件位置> ”
IPECMD.jar可以在 MPLAB 安裝文件夾中找到 :[url=file:///C:/Program]C:\Program[/url] Files (x86)\Microchip\MPLABX\vx.xx\mplab_ipe\
有關如何使用IPECMD及其命令的詳細信息,請參閱[url=file:///C:/Program]C:\Program中的“ [/url]IPECMD.htm 自述文件” [url=file:///C:/Program][/url] 文件 (x86)\Microchip\MPLABX\v5.xx\docs |