How to use PICKIT2 under linux?
Posted: Mon Sep 30, 2013 6:27 am
This is one of the common questions that people used to ask me. Is PICKIT2 linux supported. Yes, PICKIT2 is actually linux supported but only a few people know about it. I thought to share with you the required information to work out PICKIT2 under linux.
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
If you like to use a GUI for this program, you may consider using Dwarf.
I have uploaded current files from this project.
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.