PDA

View Full Version : ICProg Command Line



crematory
- 5th August 2005, 23:27
Hello

I was wondering, what is the command line that have to be used with ICProg so that when called from Microcode Studio plus, it gets the HEX file and PIC MCU number passed to ICProg.

I tried most known command lines, but seems ICProg doesn't like MCSP !!

Thanks in advance

Luciano
- 6th August 2005, 08:39
Hi,

Example: (This is not what you need, just an example).
C:\Pic\PROGRA~1\icprog.exe -l%name%.hex -f3F32 -p -q -i -v

Go to www.ic-prog.com and see command line Options.

Luciano

* * * *
Text below from:

http://www.ic-prog.com/cmdline.txt




Just startup IC-Prog with the following command line:


IC-Prog Option1 Option2 etc.


Options:

-p Program device
-v Verify device
-r Read device
-i Mainform invisible
-x Enable smartcard (Through Pic Programming)
-t00 Device type (00 can be any valid device) //NOT CHECKED!
-g00 Programmer type (00 can be any valid programmer) //NOT CHECKED!
-o0 Port type (0 can be any number 1-4, which corresponds to either LPT or COM)//NOT CHECKED!
-ft0 Select the Filetype (0 can be any value between 1 and 7) 1=IHX8,2=IHX16,3=BIN etc.
-lFILENAME Load a file (Currently only IHX8 files can be loaded)
-sFILENAME Save file as FILENAME (Currently only IHX8 files can be saved)
-q Quit after last command
-fxxxx Fuse word = xxxxh



Example: IC-Prog -ltest1.hex -p -v -i -f3EEA -q


The test1.hex will be loaded. Then it will be programmed.
You still get the message 'Do you want to program?'.
Afterwards the device will be verified. You also get the message box 'Verified succesfully'.
When ic-prog is finished it is automaticly closed and the mainform isn't visible at all.

crematory
- 6th August 2005, 18:45
Hello

What I wanteed is to press compile and program button, to launch icprog, so the hex file and pic number are automatically done, i on't think pic number selection is possible with icprog.

thanks anyway

Luciano
- 7th August 2005, 06:59
Hello PIC Crematory!

=================================================
Case 1:

Use the option -t

Type from the DOS prompt:

icprog -t132

Icprog will start with the 16F84A selected.

To find the numbers of the devices just look at the bottom right corner
of the main window of ICprog.
===============================================
Case 2:

You don't need the option -t because ICprog will remember the
last selected device type. (Just open manually ICprog, select your
device and close the program).

===============================================

Luciano

crematory
- 8th August 2005, 14:26
Hello Luciano

Thanks very much for the guidance you provided :)