Fwd: [PIC] PICkit2 Logic Analyzer for Linux

144 views
Skip to first unread message

Xiaofan Chen

unread,
May 28, 2009, 1:10:37 AM5/28/09
to pickit-devel
This might be an interesting project for this list.

---------- Forwarded message ----------
From: Joseph Jezak
Date: Thu, May 28, 2009 at 12:30 PM
Subject: [PIC] PICkit2 Logic Analyzer for Linux
To: piclist


Hi everyone!

I recently purchased a PICkit2 programmer from Microchip and have been
happily using the pk2cmd program to program my PICs, it's a nice piece
of hardware!

Unfortunately, Microchip hasn't also provided a tool to use the Logic
Analyzer or I/O Probe in Linux, so I've figured out the protocol and
written a GUI for it. There are probably bugs, but it works well enough
for what I needed to do with it and I hope someone on the list will find
it useful! I suspect that this will also run under OSX if you have the
right python libraries, but I haven't tested it yet.

I've started a SourceForge project for it at:
http://sourceforge.net/projects/pk2-la

Please let me know if you have any suggestions or improvements that
you'd like to see made.
Thanks,
-Joe

Jeff Post

unread,
May 28, 2009, 10:04:20 AM5/28/09
to pickit...@googlegroups.com
I know nothing about python (to me it's a snake), so even though this is
probably a simple problem I haven't a clue as to how to fix it. Attempting to
run pk2-la, it fails on the first line:

"No module named usb"

What else is required to get this to run?

Thanks,
Jeff


On Wednesday 27 May 2009 22:10, Xiaofan Chen wrote:
> This might be an interesting project for this list.
>
> ---------- Forwarded message ----------
> From: Joseph Jezak
> Date: Thu, May 28, 2009 at 12:30 PM
> Subject: [PIC] PICkit2 Logic Analyzer for Linux
> To: piclist
>

Xiaofan Chen

unread,
May 28, 2009, 10:42:50 AM5/28/09
to pickit...@googlegroups.com
On Thu, May 28, 2009 at 10:04 PM, Jeff Post <j_p...@pacbell.net> wrote:
>
> I know nothing about python (to me it's a snake), so even though this is
> probably a simple problem I haven't a clue as to how to fix it. Attempting to
> run pk2-la, it fails on the first line:
>
> "No module named usb"
>
> What else is required to get this to run?
>

You need to install pyusb.
http://pyusb.berlios.de/

And from the following, I think you need pygtk as well.

### For the logic analyzer
import usb
import sys
from threading import Thread

### For the GUI
import pygtk
import pango
pygtk.require('2.0')
import gtk


--
Xiaofan http://mcuee.blogspot.com

Reply all
Reply to author
Forward
0 new messages