From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7699 invoked by alias); 7 Sep 2007 09:53:56 -0000 Received: (qmail 7690 invoked by uid 22791); 7 Sep 2007 09:53:55 -0000 X-Spam-Check-By: sourceware.org Received: from scanner-relay-corvus2.pulsation.fr (HELO scanner-relay-corvus2.pulsation.fr) (80.74.64.70) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 07 Sep 2007 09:53:49 +0000 Received: (qmail 5395 invoked from network); 7 Sep 2007 09:53:45 -0000 Received: from relayauth-corvus2.pulsation.fr (80.74.64.67) by scanner-relay-corvus2.pulsation.fr with SMTP; 7 Sep 2007 09:53:45 -0000 Received: (qmail 5350 invoked from network); 7 Sep 2007 09:53:44 -0000 Received: from unknown (HELO KLKJCC) (jc.caquet@kerlink.fr@80.125.252.188) by relayauth-corvus2.pulsation.fr with SMTP; 7 Sep 2007 09:53:44 -0000 From: To: "'Andrew Lunn'" , "'eCos discussion'" Date: Fri, 07 Sep 2007 09:53:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20070906180230.GL31456@lunn.ch> 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/msg00028.txt.bz2 Message-ID: <20070907095300.OtGNFK17N0awCvVHrimOyBnroMB4RfAYRzLDtXm-qJM@z> -----Message d'origine----- De=A0: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] De la part de Andrew Lunn Envoy=E9=A0: jeudi 6 septembre 2007 19:03 =C0=A0: eCos discussion Objet=A0: Re: [ECOS] [Fwd: AT91SAM7S : cyg_io_write /dev/ser0] 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=3D4.3 required=3D5.0 tests=3DAWL,BAYES_99, > MSGID_FROM_MTA_ID,NO_REAL_NAME autolearn=3Dno version=3D3.0.4 >=20 > 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=20 implements CYGINT_IO_SERIAL_BLOCK_TRANSFER in arm/at91/current/cdl/ser_arm_at91.cdl and then do an=20 ecosconfig tree ; make ; so that it does not to block transfers. Do you still get the same problem? Andrew --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss OK, when doing so I get the following result when building ecos library : packages/devs/serial/arm/at91/current/src/at91_serial.c:506: structure has no member named `data_xmt_req' packages/devs/serial/arm/at91/current/src/at91_serial.c: In function `at91_serial_DSR': packages/devs/serial/arm/at91/current/src/at91_serial.c:613: structure has no member named `data_rcv_req' /packages/devs/serial/arm/at91/current/src/at91_serial.c:624: structure has no member named `data_rcv_done' packages/devs/serial/arm/at91/current/src/at91_serial.c:647: structure has no member named `data_xmt_done' packages/devs/serial/arm/at91/current/src/at91_serial.c:652: structure has no member named `data_xmt_req' When CYGINT_IO_SERIAL_BLOCK_TRANSFER is not defined "_data_rcv_req, _data_rcv_done, _data_xmt_req, _data_xmt_done" are excluded from structure definition in serial.h.=20 Do you think that some #if defined CYGINT_IO_SERIAL_BLOCK_TRANSFER are missing in at91_serial.c ? JC -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss