problematic usb many unable to enumerate usb device messages

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
amateur_24
Posts: 4
Joined: Wed Aug 04, 2010 8:13 pm

problematic usb many unable to enumerate usb device messages

Post by amateur_24 » Sun Aug 15, 2010 11:54 am

Hi
I'm an issue with my usb interface. I can't get it to register properly. I'm using the following tutorial
to write a boot loader that allows me to flash the firmware of my avr without my programmer.
http://www.workinprogress.ca/v-usb-tuto ... mega-tiny/

I press the reset boot to get into the bootloader then I plug in the usb cable. I get loads
of [ 1922.791885] hub 4-0:1.0: unable to enumerate USB device on port 5 in the dmesg.

[ 4730.400048] usb 4-5: new low speed USB device using ohci_hcd and address 93
[ 4730.550047] usb 4-5: device descriptor read/64, error -62
[ 4730.811863] usb 4-5: device descriptor read/64, error -62
[ 4731.090049] usb 4-5: new low speed USB device using ohci_hcd and address 94
[ 4731.240040] usb 4-5: device descriptor read/64, error -62
[ 4731.500052] usb 4-5: device descriptor read/64, error -62
[ 4731.670055] hub 4-0:1.0: unable to enumerate USB device on port 5
[ 4732.380047] usb 4-5: new low speed USB device using ohci_hcd and address 96
[ 4732.530077] usb 4-5: device descriptor read/64, error -62
[ 4732.790050] usb 4-5: device descriptor read/64, error -62
[ 4733.070158] usb 4-5: new low speed USB device using ohci_hcd and address 97
[ 4733.220040] usb 4-5: device descriptor read/64, error -62
[ 4733.480040] usb 4-5: device descriptor read/64, error -62
[ 4733.771827] usb 4-5: new low speed USB device using ohci_hcd and address 98
[ 4734.190035] usb 4-5: device not accepting address 98, error -62
[ 4734.360048] usb 4-5: new low speed USB device using ohci_hcd and address 99
[ 4734.790042] usb 4-5: device not accepting address 99, error -62
[ 4734.790068] hub 4-0:1.0: unable to enumerate USB device on port 5
[ 4756.130042] usb 4-5: new low speed USB device using ohci_hcd and address 100
[ 4756.280045] usb 4-5: device descriptor read/64, error -62
[ 4756.540041] usb 4-5: device descriptor read/64, error -62
[ 4756.800047] usb 4-5: new low speed USB device using ohci_hcd and address 101
[ 4756.950045] usb 4-5: device descriptor read/64, error -62
[ 4757.210042] usb 4-5: device descriptor read/64, error -62
[ 4757.470042] usb 4-5: new low speed USB device using ohci_hcd and address 102
[ 4757.890041] usb 4-5: device not accepting address 102, error -62
[ 4758.040096] usb 4-5: new low speed USB device using ohci_hcd and address 103
[ 4758.460047] usb 4-5: device not accepting address 103, error -62



It goes on and on until I switch it off/unplug it. I have d+ connected to pin3 and d- to pin2 of a typeB usb 1.1 socket.
It definitely not a dodgy cable since it's the same cable I use to flash the firmware. I'm 100% sure it's working
since my led comes on when I push the button to get into the bootloader.

I'm using the recommended setup with 68R resistors and 3.6V zener diodes. According to maplin, they're rates for 0.6watts
of power. On the zener I measure 0.8V D+ 0.5V D-.

I've made sure I've connected to the right pins on my avr. I 'm using a 20MHZ crystal with a full swing oscillator of my atmega328p

Also accasionally I do see 3075.610064] usb 4-5: new low speed USB device using ohci_hcd and address 12
[ 3075.760050] usb 4-5: device descriptor read/64, error -62.

#define USB_CFG_VENDOR_ID 0xc0, 0x16
#define USB_CFG_DEVICE_ID 0xdf, 0x05
#define USB_CFG_DEVICE_VERSION 0x00, 0x01
#define USB_CFG_VENDOR_NAME 'o', 'b', 'd', 'e', 'v', '.', 'a', 't'
#define USB_CFG_VENDOR_NAME_LEN 8
#define USB_CFG_DEVICE_NAME 'U','S','B','B', 'O', 'O', 'T','L','O','A','D','E','R'
#define USB_CFG_DEVICE_NAME_LEN 13
#define USB_CFG_SERIAL_NUMBER 'B', 'O', 'O', 'T','L','O','A','D','E','R'
#define USB_CFG_SERIAL_NUMBER_LEN 10
#define USB_CFG_DEVICE_CLASS 0
#define USB_CFG_DEVICE_SUBCLASS 0
#define USB_CFG_INTERFACE_CLASS 3 /* HID */
#define USB_CFG_INTERFACE_SUBCLASS 0
#define USB_CFG_INTERFACE_PROTOCOL 0
#define USB_CFG_HID_REPORT_DESCRIPTOR_LENGTH 33

my supply voltage is 5V

Post Reply