Problem with the basicusb example

Guest #1171001
Rate this post
• ▲ useful
▼ not useful
Hi,

I am trying the basicusb example provided with the winarm toolchain. I
use it as a virtual com port, so it is supposed to do a bridge between
the USART0 and the virtual port. I have one problem with it. When I send
datas from virtual port to usart0 it works fine but when I send datas
from the usart0 I only receive one character from the virtual com port.
After that, nothing works.

Have you a idea about this issue?

Thank you,
--
Eric
Guest #1171002
Rate this post
• ▲ useful
▼ not useful
ralawa wrote:
> Hi,
>
> I am trying the basicusb example provided with the winarm toolchain. I
> use it as a virtual com port, so it is supposed to do a bridge between
> the USART0 and the virtual port. I have one problem with it. When I send
> datas from virtual port to usart0 it works fine but when I send datas
> from the usart0 I only receive one character from the virtual com port.
> After that, nothing works.
>
> Have you a idea about this issue?

I have only ported this example to gcc. I have not teste the port very
much but the bi-directional data-exchange did work. But maybe there is a
mistake in the port. Get the evaluation-version of the IAR-Compiler and
the original source-code from at91.com and try again. If you see the
problem with this setup too ask in the forum at at91.com. You can also
try the USB-code in the freertos example available from freertos.org.

Martin Thomas
#1171003
Rate this post
• ▲ useful
▼ not useful
Having same problem when I ported the Atmel USB
Virtual COM example to C8051F320 quite long ago.
But sorry, could not recall what went wrong.
I think it is related to:
- ACM Descriptor, or
- have to keep returning NAK to PC if microcontroller
  has no serial data to send.

I also think it is easier to get original source
from at91.com and try again.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.