|
|
|
![]() :: Research Group Embedded Interaction :: Media Informatics :: Ludwig-Maximilians-University Munich ICD-U40 HowToPlease see our MPLAB How-To as well for programming PICs with MPLAB. Please see also our other how-to pages:
ICD-U Software and Drivers To use the ICD-U, do the following: ICD-U GUI Usage The ICD-U comes with a simple but powerful GUI. Here you can find a little introduction into the work with the ICD-U. Connect the ICD-U to your computer and install the drivers (see above). First of all, open the ICD-U software. You will be presented the following window (depending on you ICD-U software version, below is version 2.12)
Now, connect to your ICD-U hardware by clicking on "Configure Port".
After successfully selecting the ICD-U, you can test if if really was successful.
If so, you will get an corresponding window.
Now select a file for download to the PIC MCU. Click on "Download To Target". You will be promted the normal file selection dialog. If you previously selected any .HEX files, you can click in the down-pointing arrow and quick-select one of those files.
If you just installed the ICD-U software, after clicking on "Download To Target" you may be displayed the following dialog:
To get rid of the dialog, in the main ICD-U window, click on "Advanced" (on the right bottom corner). In the now open Window (see below), click on "Options" and remove the check mark before "Warn about CPU mode fuses" and "Warn about potential problems with 3.3V programming".
If you like, change the check box in the "Erase Modes" section to "Erase when needed". If you additionally do not want to low-voltage program, then change the check box "Program Modes" to "Fast (5V only)". Attention: Do not use 5V programming with particles!
Now, back in the main dialog. When you selected a file for download, a progress window opens up and shows the progress.
ICD-U Integration into Development Environments Please see our page on IDEs and Tools, it describes the integration of PIC-C and ICD-U into EditPlus and UltraEdit. You can integrate the ICD-U software for downloading your .HEX files into you PIC MCU (microcontroller unit) using the command line capabilities of the ICD-U software. To download any .HEX file non-interactively, e.g. from the command line or any IDE which allows for the use of external tools, you have to do the following: PATH_TO_ICD.EXE -TPATH_TO_HEX_OR_COFF_FILE An example call could look like this (on my computer): C:\Program Files\PICC\Icd.exe -TC:\svn\SmartITs\pic-general\template.hex The ICD-U help says the following: "Command Line Usage
The ICD software may be invoked from a command line to simply program a
target chip with no human intervention as follows:
ICD -T filename.hex
A COFF file may also be used from the command line."
Attention: there must NOT be a white space between the -T and the filename, otherwise the GUI client will open and do nothing at all! The information in the ICD-U help is incorrect! For integrating the ICD-U Software in e.g. UltraEdit32, open up UltraEdit32. Click on "Advanced" and select "Tool Configuration".
Enter the path to the ICD-U software (icd.exe) and the .HEX file you are working on in the box "Command Line" (see above for the command). Select a working directory, if you like. Enter a Menu Item Name that shall appear under "Advanced" in UltraEdit32 (see picture above!). Click "Insert" and "Ok" and that is it.
Finally, if you want to integrate the ICD-U into EditPlus, define a user tool as follows:
LinksLiterature References
|