This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Serial link problems
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Guillaume Menant <g dot menant at ayrtontechnology dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 11 Jan 2007 19:16:57 +0100
- Subject: Re: [ECOS] Serial link problems
- References: <002f01c73563$818f11e0$7001a8c0@be.local>
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