hidkeys: device not accepting address ...
hidkeys: device not accepting address ...
i have built HIDKeys (without any buttons yet) and uploaded the .hex
if i plug in the device, i get
usb 5-2: new low speed USB device using uhci_hcd and address 2
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device not accepting address 2, error -71
usb 5-2: new low speed USB device using uhci_hcd and address 3
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device not accepting address 3, error -71
hub 5-0:1.0: port 2 not reset yet, waiting 50ms
usb 5-2: new low speed USB device using uhci_hcd and address 4
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
kernel 2.6.19-rc2, /sys/modules/usbcore/parameters/old_scheme_first is true
any ideas?
if i plug in the device, i get
usb 5-2: new low speed USB device using uhci_hcd and address 2
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device not accepting address 2, error -71
usb 5-2: new low speed USB device using uhci_hcd and address 3
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device not accepting address 3, error -71
hub 5-0:1.0: port 2 not reset yet, waiting 50ms
usb 5-2: new low speed USB device using uhci_hcd and address 4
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: uhci_result_common: failed with status 440000
usb 5-2: device descriptor read/64, error -71
kernel 2.6.19-rc2, /sys/modules/usbcore/parameters/old_scheme_first is true
any ideas?
USB stack seems to not work here
Hello,
I'm starting with avr and usb.
I have set up an hardware identical to the usbtiny (without LCD) :
D- -> PD4 (I have added a 3V6 zener)
D+ -> PD2 (I have added a 3V6 zener)
pullup resistor on PD3
status led on PD5
IR on PD6
I have build a flash with nothing in it :
only connectdevice, usbinit, ...
no IR etc...
I have uploaded the hex file to the attiny2313, set the fuse as it's in the doc (using ponyprog)
My device is "detected" by the computer as "1.5 Mb/s"
but I have the same error message
...
usb 4-1: new low speed USB device using uhci_hcd and address 2
usb 4-1: uhci_result_common: failed with status 440000
usb 4-1: uhci_result_common: failed with status 440000
usb 4-1: device not accepting address 2, error -71
usb 4-1: new low speed USB device using uhci_hcd and address 3
...
Is there a simple way to check if I didn't make an hardware / software mistake ?
btw : my mother board is an abit IL90-mv
Thanks
I'm starting with avr and usb.
I have set up an hardware identical to the usbtiny (without LCD) :
D- -> PD4 (I have added a 3V6 zener)
D+ -> PD2 (I have added a 3V6 zener)
pullup resistor on PD3
status led on PD5
IR on PD6
I have build a flash with nothing in it :
only connectdevice, usbinit, ...
no IR etc...
I have uploaded the hex file to the attiny2313, set the fuse as it's in the doc (using ponyprog)
My device is "detected" by the computer as "1.5 Mb/s"
but I have the same error message
...
usb 4-1: new low speed USB device using uhci_hcd and address 2
usb 4-1: uhci_result_common: failed with status 440000
usb 4-1: uhci_result_common: failed with status 440000
usb 4-1: device not accepting address 2, error -71
usb 4-1: new low speed USB device using uhci_hcd and address 3
...
Is there a simple way to check if I didn't make an hardware / software mistake ?
btw : my mother board is an abit IL90-mv
Thanks
If you get the "device not accepting address" error, there is no USB communication at all. The "new low speed USB device" message means only that the 1.5 k pull-up resistor was detected.
This may mean almost anything. Good candidates are
If you compile the code with debug level 2, the driver prints debug information on the USART Tx pin.
This may mean almost anything. Good candidates are
- Fuse bits not set for external clock.
- Voltage level mismatch on D+/D- (no zeners and no 3.3 V regulator).
- I/O pins not configured as inputs without pull-up.
- Interrupt pin not wired correctly.
- Configuration in usbconfig.h does not match actual hardware.
If you compile the code with debug level 2, the driver prints debug information on the USART Tx pin.
Well,
the usbtiny firmware works fine except that I have a bug when I do a :
I think that something is wrong in the usbtiny firmware with the reset (probably because my usb is too picky with devices)
anyway, I'll recheck the whole configuration :
- fuse bits (should be ok because I set the fuses as it's explained in Powerswitch)
- wiring should be ok as it "works with usbtiny firmware"
- I have probably a misconfiguration in usbconfig.h
I'll write a report as soon as I can recheck the whole thing.
BTW, does anyone can tell me how I should wire the TX port in order to get the debug information in some kind of minicom ?
cheers
the usbtiny firmware works fine except that I have a bug when I do a :
Code: Select all
/etc/init.d/hotplug stop
/etc/init.d/hotplug start
I think that something is wrong in the usbtiny firmware with the reset (probably because my usb is too picky with devices)
anyway, I'll recheck the whole configuration :
- fuse bits (should be ok because I set the fuses as it's explained in Powerswitch)
- wiring should be ok as it "works with usbtiny firmware"
- I have probably a misconfiguration in usbconfig.h
I'll write a report as soon as I can recheck the whole thing.
BTW, does anyone can tell me how I should wire the TX port in order to get the debug information in some kind of minicom ?
cheers
Just because it works with usbtiny does not mean that the wiring is OK. The wiring must match your settings in usbconfig.h and these may differ from the usbtiny settings.
In order to see debug info, you must connect the Tx pin through an inverting level converter (such as the MAX232) to the Rx pin of the serial port of your computer. Then tell minicom to ignore all types of handshakes (if this option is available).
If you don't have a MAX232, you should at least generate levels of +/- 5 V, e.g. with transistors. There are many circuit diagrams for RS232 level converters available on the net.
In order to see debug info, you must connect the Tx pin through an inverting level converter (such as the MAX232) to the Rx pin of the serial port of your computer. Then tell minicom to ignore all types of handshakes (if this option is available).
If you don't have a MAX232, you should at least generate levels of +/- 5 V, e.g. with transistors. There are many circuit diagrams for RS232 level converters available on the net.