gnupic: Problems with USB PIC 18f2455
Subject:
Problems with USB PIC 18f2455
From:
Nicholas Robinson ####@####.####
Date:
7 Mar 2006 23:25:08 +0000
Message-Id: <200603072325.04352.npr@bottlehall.co.uk>
Hi
A few weeks ago, I emailed about problems getting a PIC 18f2455 to connect via
USB. I was advised to post to the usb mailing list but this proved no help. I
wonder if anyone can help? I would like to avoid spending £120 on a debugger
if I can as it is a hobby project and probably doesn't justify the spend.
I've used Alan Macek's circuit as the basis for mine and with 4 MHz chip.
I've used Ben Dugan's macros for gpasm and Brad Minch's lab2 application.
Using dmesg I get:
usb 2-2: new low speed USB device using uhci_hcd and address 3
usb 2-2: device descriptor read/64, error -71
usb 2-2: device descriptor read/64, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 4
usb 2-2: new low speed USB device using uhci_hcd and address 5
usb 2-2: device descriptor read/64, error -71
usb 2-2: device descriptor read/64, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 6
usb 2-2: device descriptor read/64, error -71
usb 2-2: device descriptor read/64, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 7
usb 2-2: device not accepting address 7, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 8
usb 2-2: device not accepting address 8, error -71
When I plug the circuit in. Usbmon doesn't really show anything more exciting.
I've put some 'debug' into the application so that it blinks leds at various
times and these light up after a few seconds (not sure if this delay should
be expected, my last experience of interrupts and such low level programming
was on a z80). One odd thing is that after trying out the circuit, the mouse
(the only other device on the same usb hub) stops working and has to be
unplugged and replugged many times to get it working again (or the machine
rebooted if I get bored first).
My theory, such as it was, was that I had made a mistake working out the
frequency config fuse settings and so the usb wasn't being driven at the
correct frequency. However, I've now tried every combination as far as I can
tell and nothing works. The usb hub is quite old and only low speed, but I've
tried it on other machines (even windows) and it doesn't come up with
anything like a valid device.
I'm running fedora core 4 with kernel 2.6.15-1.1831_FC4.
Thanks for any help you can give.
Nick