This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Serial link problems


On Thu, Jan 11, 2007 at 10:33:08AM +0100, Guillaume Menant wrote:
> Hello,
> 
> While using RedBoot on AT697 (LEON Sparc V8), I've encountered problems
> using the serial link. It appears that the "_rb_gets_preloaded" function
> miss few characters arriving on the serial link. For example, I send "help"
> and RedBoot understands "hlp".
> 
> I've tried to send this command with 2 different softwares: 
> 
> - The first one send the 4 ascii characters one after the other followed by
> the carriage return -> RedBoot don't understand the command every time.
> - The second one sends each character as soon as the user hit a key on the
> keyboard (it's hyperterminal, included in windows XP) -> RedBoot understand
> the command every time.
> 
> What can I do to resolve this problem? Obviously, it comes from the serial
> driver included in RedBoot (in io.c), but what kind of modification have I
> to do to prevent it?

Are you running it a very high speed? Try at a slower speed and see if
it works better. You probably don't have any flow control, and redboot
is polled I/O, not interrupt driven. How big a receive hardware buffer
does the serial port hardware have? 

     Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]