AVR32 USB in CDC mode as USB Serial Port

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

Does anybody know how to easily implement a USB Serial communication from the UC3? What I want to do is get rid of my USART to USB convert and just use the UC3 USB drivers to do the same thing. Currently just talk to the UC3 through putty as a COM port at 115200.

I have added the USB drivers as required in ASF but the examples only confuse me in CDC mode (device and host classes).

Can anybody save me?

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

Cant you just run the code and it works?

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

I also think that USB CDC should work out of the box - I assume you need the device mode to get connected to your PC that only supports host, I guess.

What is your use case?
Replacing serial debug output by USB CDC might not be the best idea.

-sb

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

You should find a example with USB CDC Device - if you want to connect it to your PC.

If you are using windows it will not make a virtual COMn port right away. You need a .inf file to tell windows it is a comport and not a modem or other. It is usually supplied with a USB CDC Device example.

Also to mention the baud rate setting is irrelevant in this case since it is sent over USB and not over USART. The only thing it can be used for is if you make a USB -> USART device. Then the baud rate setting has to be translated to the mcu USART interface.

Hope it helps

"It can NOT be solved in firmware later"

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

i got this problem too.. however, i cannot install the .inf file in my computer due to the different windows bit. do u all have this problem

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

ycong_sg wrote:
i got this problem too.. however, i cannot install the .inf file in my computer due to the different windows bit. do u all have this problem

Why do you cannot install the .inf file? What exact error message do you have?

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

In the specified folder is not a compatible software driver for the device. If the folder contains a driver, make sure that this is for "Windows for x64-based Systems".

this is the error i have when i want to install in my computer

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

If you have a Win8 x64 you may have to make a catalog file and sign it, when you modify the atmel cdc.inf file.

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

i am using win 7 64 bits

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

The ASF USB Standard I/O (stdio) Example code using the service USB Device cdc_stdio works as it should on my windows 7 x64 and UC3A3256 Xplained board.

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

Hi ycong,

I had the same problem with the .inf file (also running windows 7 x64). When I copied the .inf to my desktop (when installing driver: navigate to Desktop folder, uncheck "include subfolders"), it magically worked. Hope this helps.