How to use PICKIT2 under linux?

Microcontroller Topics
Post Reply
User avatar
TRONICLK
Captain
Captain
Posts: 140
Joined: Fri Oct 12, 2018 2:04 am
Contact:

How to use PICKIT2 under linux?

Post by TRONICLK » 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.
pk2cmdv1.20LinuxMacSource.tar.gz
(217.94 KiB) Downloaded 294 times
- 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
If you like to use a GUI for this program, you may consider using Dwarf.

I have uploaded current files from this project.
dwarf.tgz
(94.75 KiB) Downloaded 301 times
dwarf.pdf
(91.3 KiB) Downloaded 309 times
Post Reply

Return to “Microcontrollers”