usb is not working after sending first out packet

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

Dear Sir,

I am attaching my project which is compiled on atmel studio 6. It is a simple usb program to loopback the data received on out endpoint. The code is running in debug mode but it is not properly working in run mode. The firmware is not receiving and not transmitting through in & out endpoints in run mode. Kindly reply me about it.

Attachment(s): 

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

Have you gotten a simpler program to work in run mode?    Maybe blink a LED or toggle an output pin every few seconds.

I'm not familiar with the UC3.  What does debug mode mean?  When I debug an Xmega, I plug a debugger into the board. 

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

Thank you for reply. Debug mode means the debugging the program through jtag debugger. I am facing problem with usb interface and sleep modes.
 

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

Plugging in a debugger can temporarily fix some problems.  If the board has a bad or non-existent ground, the debugger can supply a good one.  If there is a resistor connected to the reset pin, this can cause problems with some AVRs like the Xmega.  The debugger can somehow make it work.

 

Usually these problems prevent the AVR from operating at all.  You seem to imply you can get some programs to run without the debugger.

 

Connecting a USB cable to a board can be done incorrectly.  I don't remember exactly.  I connect the black ground wire (I think that's pin 5 on micro usb connector) to board ground.  The shield should be left unconnected.  As I remember, some people connect the shield through a high resistance resistor, and maybe a capacitor.

Last Edited: Mon. Jan 9, 2017 - 02:21 PM