XMEGA 32A4U USB? HELP NEEDED!

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I'm getting started with XMEGA development, I'm trying to build a USB HID Midi controller. I designed and built a simple development board based on the XMEGA 32A4U. I attached the schematic and PCB, if someone could take a look at the files, it would be helpful to know if the hardware looks ok or not.

 

I use the PDI interface to program the chip using the AVRDRAGON programmer. To develop firmware I mostly use ASF in Atmel Studio 7.0.

I already have the basic interfaces running (USART, timer, ADC, DAC etc. ) but I couldn't get the USB working.

 

I tried some of the examples from ASF (CDC Serial, Mouse Example etc.), the projects compile and upload just fine, but when I plug in USB on the board nothing happens on the computer (no driver installation, not sound, nothing!)

 

The board is running at 3.3V and has an external 16MHz crystal.

 

I'm looking for some information, tutorial or example project to get started with USB on XMega.

 

Thank you for helping,

Cheers!

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You should have ESD protection on the USB D+/D- signals.

 

Post your code.

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I zipped the project files, it's based on the ASF online documentation.

 

 

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How many errors, warnings, messages do you get when you do a clean build?  This code is a mess.

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

29 warnings, 19 messages:

 

 

Did you just ignore all of these?

 

Greg Muth

Portland, OR, US

Xplained/Pro/Mini Boards mostly

 

Make Xmega Great Again!

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I was trying to hack together the clock configuration because I couldn't get ASF to set the clock source correctly. Now I figured that part out, so i attached the new code!

 

Sorry I couldn't reply sooner, thanks for the help!

Attachment(s):