Page 1 of 1

HID with atmega162

Posted: Mon Oct 27, 2008 11:42 am
by atmmmmmega
Hi,

I want to use the avrusb thing for different aims. One Thing ist the InfraHID. As i habe a basic development board with a ATmega162 is used ist and connectet the USB_Port . The Power comes from the usb via a adp3338 regulator (3,3V).

I use a 16MHz crystal.

All works fine with the Powerswitch.
Under Linux dmesg shows:
[355403.537245] usb 3-2.3.2: new full speed USB device using ehci_hcd and address 79
[355403.573778] usb 3-2.3.2: configuration #1 chosen from 1 choice


With InfraHID firmware just something like

[355405.500781] usb 1-5: new full speed USB device using ohci_hcd and address 9
[355405.569868] usb 1-5: device descriptor read/64, error -62
[355405.678879] usb 1-5: device descriptor read/64, error -62
[355405.786345] usb 1-5: new full speed USB device using ohci_hcd and address 10
[355405.855439] usb 1-5: device descriptor read/64, error -62
[355405.964444] usb 1-5: device descriptor read/64, error -62
[355406.071909] usb 1-5: new full speed USB device using ohci_hcd and address 11
[355406.228889] usb 1-5: device not accepting address 11, error -62
[355406.296065] usb 1-5: new full speed USB device using ohci_hcd and address 12
[355406.452660] usb 1-5: device not accepting address 12, error -62


came.

I added

Code: Select all

#define F_CPU 16000000
#define USB_CFG_CLOCK_KHZ 16000
to usbconfig.h