v-usb on ATMega168PA

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
zklapow

v-usb on ATMega168PA

Post by zklapow » Thu Jun 24, 2010 9:10 pm

I am running an ATMega168PA at 3.3v with v-usb. I have 100ohm resistors in the d+ and d- lines. d- is ont PD4, and d+ on PD2(INT0). I have read the post about P series chips and have mad changes accordingly so that usbconfig.h has

Code: Select all

#define USB_INTR_VECTOR INT0_vect
AND usbdrvasm16.S has line 60 modified to be INT0 as well. However when i connect the device to the computer it does not connect. I have tried ALL of the examples and not one of them works. Upon further inspection i found the following output form dmesg(I'm running ubuntu 9.10 also if that helps):

Code: Select all

[ 2496.010020] usb 4-2: new low speed USB device using uhci_hcd and address 34
[ 2496.155038] usb 4-2: device descriptor read/all, error 16
[ 2496.280022] usb 4-2: new low speed USB device using uhci_hcd and address 35
[ 2496.425037] usb 4-2: device descriptor read/all, error 16
[ 2496.540037] usb 4-2: new low speed USB device using uhci_hcd and address 36
[ 2496.569036] usb 4-2: device descriptor read/all, error 16
[ 2496.690020] usb 4-2: new low speed USB device using uhci_hcd and address 37
[ 2496.719038] usb 4-2: device descriptor read/all, error 16
[ 2496.721038] hub 4-0:1.0: unable to enumerate USB device on port 2

I am at a loss as to what my be going on here any suggestions would be much appreciated.

DetlevT
Posts: 3
Joined: Thu Nov 12, 2009 12:21 am

Re: v-usb on ATMega168PA

Post by DetlevT » Tue Jun 29, 2010 8:30 am

What's your system clock? By default the driver is set to 12Mhz.

zklapow
Posts: 1
Joined: Thu Jun 24, 2010 9:12 pm

Re: v-usb on ATMega168PA

Post by zklapow » Tue Jun 29, 2010 8:07 pm

I have tried both a 16 and 12 mhz clock.

seba1978
Posts: 1
Joined: Thu Sep 02, 2010 2:19 pm

Re: v-usb on ATMega168PA

Post by seba1978 » Thu Sep 02, 2010 2:23 pm

Hi,
Have you fixed this issue? I'm having the same problem as you with the atmega168pa
Thank you
Seb

Post Reply