On Thu, Jul 31, 2008 at 5:45 AM, Gerhard Fiedler wrote: > Mauricio Giovagnini wrote: >> Artem Zezyulinskiy escribi=F3: >> >>> In MPLAB IDE you can _Import_ a hex., cof, or cod. files from File Menu. >>> And directly programm the PIC with ICD-2 >>> >> That's true but the user will also have to select the device >> in the Configure menu, under the Select Device option. >> >> An HEX file has no information about the device to which the >> code belongs. >> > You can load MPLAB with a workspace from the command line (that is, a > properly configured Windows shortcut). The workspace contains the > information about the device. > > You can also automate the whole process (loading MPLAB correctly, > importing the hex file and starting the programming) with AutoIt3. A simpler way is to dump ICD2 and buy the US$35 PICKit 2. It has a console version pk2cmd which does what you want. As a programmer, PICkit 2 is way better than ICD2. Firstly it can control target Vdd. Secondly, you can get good support from the PICKit 2 developer from Microchip Forum. Thirdly, it supports non-MCU device like serial EEPROMs and other Microchip device. http://www.microchip.com/pickit2 http://forum.microchip.com/tt.aspx?forumid=3D15 Xiaofan -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist