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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now