Make sure you have following System requirements.
- A working Linux installation
- GCC
- G++
- make
- libusb
- libusb development libraries
Compiling pk2cmd
- Go to Linux section of Microchip PICKIT2 page and download PK2CMD V1.20 Linux & Mac OS X Source Code with Makefile
I have uploaded current version 1.20 here. - From the command-line, cd into the source code directory
- Execute make linux
- Copy following files to another directory
* pk2cmd
* PK2DeviceFile.dat
* PK2V023200.hex
* ReadmeForPK2CMDLinux2-6.txt
* usbhotplug.txt
Now you can use and redistribute the files in that new directory.
Check your installation by using pk2cmd ? command.
Sample command line to program a chip
Code: Select all
pk2cmd -PPIC16F877A -Fexample.hex -M
I have uploaded current files from this project.