nonolith / USB-XMEGA

USB stack for Atmel ATxmega32A4U and related parts
http://nonolithlabs.com
38 stars 13 forks source link

Example for Xmega128A1 or Xmega128A3 #1

Open jtronics opened 11 years ago

jtronics commented 11 years ago

I try to implement a usb communication between a xmega128A3 or xmega128A1 and my pc. But it don't work. Could someone help me with a working example?

Thanks Martin

kevinmehall commented 11 years ago

You should be able to change the MCU = line in the makefile to build for another processor.

Also note that you will need the Xmega128A1U or Xmega128A3U, as the older variants without the U do not have USB support.

jtronics commented 11 years ago

I'm using the avr studio. Maybe I did some configurations wrong.

kevinmehall commented 11 years ago

If you're letting AVR Studio generate a makefile, make sure it's defining the options that the original makefile does:

USB_MAXEP=2
USB_EP0SIZE=64
F_CPU=32000000UL
F_USB=48000000UL

or add those as #defines in a file included from usb.h