Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for Xmega128A1 or Xmega128A3 #1

Open
jtronics opened this issue Jan 31, 2013 · 3 comments
Open

Example for Xmega128A1 or Xmega128A3 #1

jtronics opened this issue Jan 31, 2013 · 3 comments

Comments

@jtronics
Copy link

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
Copy link
Member

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
Copy link
Author

jtronics commented Feb 1, 2013

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

@kevinmehall
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants