From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17995 invoked by alias); 11 Jan 2007 11:12:46 -0000 Received: (qmail 17981 invoked by uid 22791); 11 Jan 2007 11:12:46 -0000 X-Spam-Check-By: sourceware.org Received: from sta-204-188-98-27.rockynet.com (HELO hermes.chez-thomas.org) (204.188.98.27) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Jan 2007 11:12:41 +0000 Received: by hermes.chez-thomas.org (Postfix, from userid 999) id 42AA619500C6; Thu, 11 Jan 2007 04:12:38 -0700 (MST) Received: from [192.168.1.101] (hermes_local [192.168.1.101]) by hermes.chez-thomas.org (Postfix) with ESMTP id 7F8781950091; Thu, 11 Jan 2007 04:12:20 -0700 (MST) Message-ID: <45A61B5E.2040109@mlbassoc.com> Date: Thu, 11 Jan 2007 11:12:00 -0000 From: Gary Thomas User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: Guillaume Menant CC: ecos-discuss@sources.redhat.com References: <002f01c73563$818f11e0$7001a8c0@be.local> In-Reply-To: <002f01c73563$818f11e0$7001a8c0@be.local> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Serial link problems X-SW-Source: 2007-01/txt/msg00054.txt.bz2 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? What you're seeing is a serial overflow, caused when characters come into RedBoot too quickly. Your first case, all four characters will be sent back to back, in the second, they'll only be sent as fast as the person typing them. Either run at a slower baud rate, or go with the one-character-at-a-time style of input. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss