Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Sending Text file trough USB
PostPosted: Mon Jul 11, 2011 12:45 pm 
Offline

Joined: Fri Aug 13, 2010 11:38 am
Posts: 7
Hi all,

I have got some firmware running based on the CDC example provided by Atmel. I am using the GNU toolchain on some custom hardware and in this case the AT91SAM7S-EK devboard (256).

In order to be able to run batch commands and program an fpga with the microcontroller, I want to send files over the virtual COM port in hyperterminal, wich is connected by the USB interface.

When I start to send a file (textfile transfer, NOT some Xmodem or other protocol), only the first character is received. After that, the microcontroller does not respond anymore. I already tried to disable interrupts but it does not seem to affect the mather.

Does someone know a sollution to this problem, or maybe even can provide me with an example. Xmodem implementation trough USB would be a neat sollution to, obviously.

Thanks in advance!


Top
 Profile  
 
 Post subject: Re: Sending Text file trough USB
PostPosted: Thu Jul 21, 2011 1:43 pm 
Offline

Joined: Fri Aug 13, 2010 11:38 am
Posts: 7
So let me kick this topic up a little bit...

This is what I found recently:
The usb transfer works properly, as long as the string that is transfered from some terminal does not exceed 8 characters (incl. \r).

Than the 8 characters are put in the usbBuffer and can be processed. When I send a string that exceeds those 8 characters, only one single character is received every time, for as long as the transfer lasts.

I am using the cdc-serial example provided by Atmel.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: