EmbDev.net

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


Author: ralawa (Guest)
Posted on:

Rate this post
0 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

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Author: Mh Tay (lpc2103)
Posted on:

Rate this post
0 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.

Author: ralawa (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.