EmbDev.net

Forum: ARM programming with GCC/GNU tools Problem with the basicusb example


von ralawa (Guest)


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

von Martin Thomas (Guest)


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

von Mh T. (lpc2103)


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.

von ralawa (Guest)


Rate this post
useful
not useful
MH Tay wrote:
> I also think it is easier to get original source
> from at91.com and try again.

OK I will try this.
Thank you.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.