From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16454 invoked by alias); 15 Oct 2010 17:07:21 -0000 Received: (qmail 16352 invoked by uid 22791); 15 Oct 2010 17:07:15 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Oct 2010 17:07:09 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 712B72F80001 for ; Fri, 15 Oct 2010 18:07:06 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m12c8cuheBK6; Fri, 15 Oct 2010 18:07:02 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001024] STM32 USB driver and proposed USB API change X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: john@dallaway.org.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: john@dallaway.org.uk X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 15 Oct 2010 17:07:00 -0000 Message-Id: <20101015170702.193DF2F80006@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-10/txt/msg00006.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024 --- Comment #14 from John Dallaway 2010-10-15 18:06:58 BST --- (In reply to comment #13) > I did the same thing like John. The result is somewhat different. I'm getting > echo of every even character, while the odd ones are lost. When I type > "abcdefgh" the echo is "bdfh". > > Furthermore I used usb sniffer to confirm that the host correctly sends all > characters, each in a separate out packet. > > How can I further help the development? I can dedicate some of my time for > this. Ilija, it's good to have your support. I was using a blocking call to read a single char: char rxbuf[1]; while (1) { usbs_serial_rx(&usbs_ser0, rxbuf, 1); diag_printf("RX char: %c\n", rxbuf[0]); } I have now determined that usbs_serial_rx() returns to caller on receipt of every char but the buffer is modified only when even numbered chars are received. Perhaps you were using a non-blocking read? So the driver is responding to every char received but only the 2nd, 4th, 6th, ... chars are being processed correctly. Hopefully Chris Holgate will be able to readily identify the problem from our descriptions, otherwise your time in debugging this would be very helpful. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.