

This tutorial shows how to use iCP01 and iCP02 under Mac OS X with Terminal or GUI form. Support is NOT provided for this Mac OS X programming.
The following information is quoted from 'Readme For PK2CMD MacOSX.txt'
Supported Operating System:
MacOS 10.4 and 10.5, on Intel or PowerPC based machines.
Software installation (Terminal form):
Command Line Option:
The following commands are available in the command line interface:
Options | Description |
C | Blank Check Device |
E | Erase Flash Device |
F<file> | Hex File Selection |
G<Type><range/path> |
Read functions Type F: = read into hex file, path = full file path, range is not used Types P,E,I,C: = ouput read of Program, EEPROM, ID and/or Configuration Memory to the screen. P and E must be followed by an address range in the form of x-y where x is the start address and y is the end address both in hex, path is not used |
K | Display Hex File Checksum |
L<rate> |
Set programming speed <rate> is a value of 1-16, with 1 being the fastest |
M<memory region> |
Program Device Memory regions: P = Program memory, E = EEPROM, I = ID memory C = Configuration memory If no region is entered, the entire device will be erased & programmed. If a region is entered, no erase is performed and only the given region is programmed. |
P<part> | Part Selection. Example: -PPIC16f887 |
P | Auto-Detect in all detectable families |
PF | List auto-detectable part families |
R | Release /MCLR after operations |
U<value> | Program OSCCAL memory, where: <value> is a hexidecimal number representing the OSCCAL value to be programmed. This may only be used in conjunction with a programming operation. |
V<value> | Vpp override |
X | Use VPP first Program Entry Method |
Y<memory region> |
Verify Device: P = Program memory, E = EEPROM, I = ID memory C = Configuration memory If no region is entered, the entire device will be verified |
Z | Preserve EEData on Program |
? | Help Screen |
Each option must be immediately preceeded by a switch, which can be either a dash <-> or a slash </> and options must be separated by a single space.
Example:
PK2CMD /PPIC16F887 /Fc:mycode /M
PK2CMD -PPIC16F887 -Fc:mycode -M
Command Line Example:
PK2CMD /PPIC16F887 /FC:PROJECTPROGRAM.HEX /MPC
PICkit2 set to a PIC16F887. File PROGRAM.HEX is loaded. The device's program memory and configuration memory are programmed.
Software installation (GUI form):
Download:
Special Thanks to: