Friday, December 28, 2012

PICkit2 bring-up

Finally dusted off the Microchip PICkit2 microcontroller programmer and debugger. Plugged it in, downloaded the latest PICkit 2 software, installed and tried to run with Wine. OK, what was I expecting?

There's a somewhat newer un*x command line interface, pk2cmd, that has this encouraging note from Microchip:
    Microchip Technology Inc. does not provide support for this Linux and Mac OS software, which is provided “as is.” See included Readme files for more information.
I downloaded the executable version. I put the executable in /usr/local/bin and the device data file in /usr/share/pk2 as suggested but balked at adding the latter directory to my PATH. The -B option successfully designates this path from the command line but the PICkit could not be found on the USB port.

I grabbed the source and tried to build after installing the required libusb-1.0-0-dev package. Or so I thought. After a bit of struggle it turns out that libusb++-dev is the required package. Also, this package gets installed in /usr and not /usr/local so the Makefile symbol LIBUSB needs to be changed to /usr.

Suprise. I go to bed early tonight.

No comments:

Post a Comment