USB on Mega664 not working
Posted: Thu Mar 13, 2008 5:27 pm
Hi,
I tried the PowerSwitch example on my Mega644 but the PC always says that the connected USB device could not be detected and doesn't work properly (libusb-win32 is installed and HIDKeys has the same problem).
My layout looks like this:
D+ -> 68Ohm -> PC2.
PC2 <-> INT0
D- -> 68Ohm -> PC0
+ -> 1.5k -> D-
- -> GND
I'm using a 12MHz quartz oscillator and lfuse=0xff.
The CPU itself is working fine, but USB isn't.
In case you need it, here are some measurements:
GND,+: 5.03V
GND,D-: 4.04V
GND,D+: 1.63V
Through the serial line, i get the following output (DEBUG_LEVEL=2):
dmesg on a linux box:
I tried the PowerSwitch example on my Mega644 but the PC always says that the connected USB device could not be detected and doesn't work properly (libusb-win32 is installed and HIDKeys has the same problem).
My layout looks like this:
D+ -> 68Ohm -> PC2.
PC2 <-> INT0
D- -> 68Ohm -> PC0
+ -> 1.5k -> D-
- -> GND
I'm using a 12MHz quartz oscillator and lfuse=0xff.
The CPU itself is working fine, but USB isn't.
In case you need it, here are some measurements:
GND,+: 5.03V
GND,D-: 4.04V
GND,D+: 1.63V
Through the serial line, i get the following output (DEBUG_LEVEL=2):
Code: Select all
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
ff:
dmesg on a linux box:
Code: Select all
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 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 8
usb 2-2: device not accepting address 8, error -71
usb 2-2: new low speed USB device using uhci_hcd and address 9
usb 2-2: device not accepting address 9, error -71