No PICkit 2 found

210 views
Skip to first unread message

George

unread,
Jun 3, 2009, 1:02:47 AM6/3/09
to pickit-devel
I am getting the "No PICkit 2 found." message. System is dual boot and
works with Windows.
A ICD2 works on same linux system. Rebuilt with MAX debug.

pk2cmd -V
.
.
usb_os_find_devices: Couldn't open /dev/bus/usb/006/002
.
.
No PICkit 2 found.

Command issued as root. Fedora 8, 32 bit

George

Xiaofan Chen

unread,
Jun 3, 2009, 2:47:35 AM6/3/09
to pickit...@googlegroups.com
On Wed, Jun 3, 2009 at 1:02 PM, George <ggall...@comcast.net> wrote:
>
> I am getting the "No PICkit 2 found." message. System is dual boot and
> works with Windows.
> A ICD2 works on same linux system. Rebuilt with MAX debug.
>
> pk2cmd -V
> .
> .
> usb_os_find_devices: Couldn't open /dev/bus/usb/006/002
> .

Please post the full log. There are something missing here.

> .
> No PICkit 2 found.
>
> Command issued as root. Fedora 8, 32 bit

Have you tried this patch for pk2usb.cpp?
//#if HAVE_LIBUSB_INTERRUPT_MODE
// latest libusb: interrupt mode, works with all kernels
# define PICKIT_USB(direction) usb_interrupt_##direction //only keep this line
//#else
// older libusb: bulk mode, will only work with older kernels
//# define PICKIT_USB(direction) usb_bulk_##direction
//#endif

What does "lsusb" says about PICkit 2?

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

George M. Gallant

unread,
Jun 3, 2009, 9:29:32 AM6/3/09
to pickit...@googlegroups.com

The permissions on /dev/bus/usb/xxx seems to be the problem.

[root@firefly]# lsusb
Bus 002 Device 011: ID 04d8:0033 Microchip Technology, Inc.
Bus 002 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 002: ID 0bda:0111 Realtek Semiconductor Corp. Card Reader
Bus 002 Device 001: ID 1d6b:0002
Bus 007 Device 001: ID 1d6b:0001
Bus 008 Device 002: ID 045e:00e1 Microsoft Corp. Wireless Laser Mouse
6000 Reciever
Bus 008 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
[root@firefly]# pk2cmd -V
No PICkit 2 found.

[root@firefly]# ls -l /dev/bus/usb/002
total 0
crw-r--r-- 1 root root 189, 128 2009-05-30 18:28 001
crw-r--r-- 1 root root 189, 129 2009-05-30 18:28 002
crw-r--r-- 1 root root 189, 131 2009-05-30 18:28 004
crw-rw---- 1 root microchip 189, 138 2009-06-03 09:18 011
[root@firefly]# chmod 666 /dev/bus/usb/002/011
[root@firefly]# pk2cmd -V
-P is a required option

I put the changes in /etc/udev/rules.d/26-microchip

#PICKit 2
ATTR{idVendor}=="04d8", ATTR{idProduct}=="0033", OWNER:="root",
GROUP:="microchip",MODE:="0666"

Now to get c30 to generate images!

George

Xiaofan Chen

unread,
Jun 3, 2009, 7:51:50 PM6/3/09
to pickit...@googlegroups.com
On Wed, Jun 3, 2009 at 9:29 PM, George M. Gallant
<ggall...@comcast.net> wrote:
>
> I put the changes in /etc/udev/rules.d/26-microchip
>
> #PICKit 2
> ATTR{idVendor}=="04d8", ATTR{idProduct}=="0033", OWNER:="root",
> GROUP:="microchip",MODE:="0666"
>
> Now to get c30 to generate images!
>

Glad to know that you solved the problems.

I will update this wiki.
http://piklab.wiki.sourceforge.net/USB+Port+Problems

I've used Fedore version since Core 6. But the only
exception is Fedora 8 since it failed to be installed last time.
http://mcuee.blogspot.com/2007/11/new-fc8-install-hangs-at-message.html


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

George M. Gallant

unread,
Jun 3, 2009, 9:57:28 PM6/3/09
to pickit...@googlegroups.com
Xiaofan,

Thanks. Successfully burned a 18F2620 part using pk2cmd.
Required a 1 line change to the Makefile.

George

Reply all
Reply to author
Forward
0 new messages