From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4982 invoked by alias); 6 Sep 2007 18:02:49 -0000 Received: (qmail 4947 invoked by uid 22791); 6 Sep 2007 18:02:40 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Sep 2007 18:02:33 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1ITLgU-0006QV-00 for ; Thu, 06 Sep 2007 20:02:30 +0200 Date: Thu, 06 Sep 2007 18:02:00 -0000 From: Andrew Lunn To: eCos discussion Message-ID: <20070906180230.GL31456@lunn.ch> Mail-Followup-To: eCos discussion References: <46E03E6E.1080409@jifvik.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46E03E6E.1080409@jifvik.org> User-Agent: Mutt/1.5.16 (2007-06-11) X-IsSubscribed: yes 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] [Fwd: AT91SAM7S : cyg_io_write /dev/ser0] X-SW-Source: 2007-09/txt/msg00023.txt.bz2 On Thu, Sep 06, 2007 at 06:52:46PM +0100, Jonathan Larmour wrote: > The attached mail was misaddressed.... > From: jc.caquet@kerlink.fr > To: ecos-discuss-owner@ecos.sourceware.org > Subject: AT91SAM7S : cyg_io_write /dev/ser0 > Date: Thu, 6 Sep 2007 18:58:50 +0200 > X-Spam-Status: No, score=4.3 required=5.0 tests=AWL,BAYES_99, > MSGID_FROM_MTA_ID,NO_REAL_NAME autolearn=no version=3.0.4 > > Dear all, > we use cyg_io_write on a serial device of AT91SAM7S board and when we try to > send only 1 character cyg_io_write fails and returns -1 as a result code. > Everything is OK as soon as we send more than 1 character, every character > is always successfully output. > Did anybody already face this problem?? AT91 is one of the two drivers which make use the block transfers in the serial layer. So maybe you are seeing a bug in this code? comment out the implements CYGINT_IO_SERIAL_BLOCK_TRANSFER in arm/at91/current/cdl/ser_arm_at91.cdl and then do an ecosconfig tree ; make ; so that it does not to block transfers. Do you still get the same problem? 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