On Mon, Oct 3, 2011 at 10:07 PM, V G wrote: > Let me clarify. Anyone know how to flash a precompiled hex file to a PIC > from within MPLAB with REAL ICE/ICD? I don't see the option to load a hex > file, unlike the PICKIT2 program. Either use MPLAB to Import the hex file or you can use the console command line program, similar to PICkit 2's pk2cmd. C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\ICD3\ICD3CMD.exe C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\RealICE\RealICECM= D.exe C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\PICkit3\PK3CMD.ex= e C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\ICD3>ICD3CMD.exe Options Description ---------------------------------------------------------------------------= - B Batch Mode Operation C Blank Check Device E Erase Flash Device F Hex File Selection G Read functions region: E =3D EEPROM I =3D ID memory C =3D Configuration memory B =3D Boot Flash Memory If no region is entered, the entire device will be read. Type F: =3D read into hex file, Path =3D full file path, H Hold In Reset L Release from Reset I Use High Voltage MCLR M Program Device region: P =3D Program memory E =3D EEPROM I =3D ID memory C =3D Configuration memory B =3D Boot Flash Memory If no region is entered, the entire device will be programmed. N####,#### Program Memory Range #### is a hexidecimal number representing Start and End Address in sequence P Part Selection. Example: 18F67J50 R Reporgram S SQTP File Selection U## Program calibration memory,where: ## is a hexidecimal number representing the least significant byte of the calibration value to be programmed V Power Target from ICD3 Y Verify Device against selected HEX File ? Help Screen ?E Displays Exit Code Example: ICD3CMD /P18F67J50 /GFc:\HexCode.hex or Example: ICD3CMD -P18F67J50 -GFc:\HexCode.hex Version 01.00.11 Copyright (C) Microchip Technology Inc. 2009 --=20 Xiaofan --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .