From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21318 invoked by alias); 15 Oct 2010 13:51:44 -0000 Received: (qmail 21304 invoked by uid 22791); 15 Oct 2010 13:51:42 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,TW_UH 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 13:51:37 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 94E992F8000C for ; Fri, 15 Oct 2010 14:51:34 +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 mN3nJU9yyhc8; Fri, 15 Oct 2010 14:51:31 +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: AssignedTo 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 13:51:00 -0000 Message-Id: <20101015135131.68E892F80001@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/msg00004.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 John Dallaway changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned@bugs.ecos.source |john@dallaway.org.uk |ware.org | --- Comment #12 from John Dallaway 2010-10-15 14:51:27 BST --- Chris, thank you for the updated driver. The cdc-acm driver on my Linux box is now reporting "Zero length descriptor references": Oct 15 13:11:27 cog kernel: usb 4-1: new full speed USB device using uhci_hcd and address 28 Oct 15 13:11:37 cog kernel: usb 4-1: configuration #1 chosen from 1 choice Oct 15 13:11:37 cog kernel: drivers/usb/class/cdc-acm.c: Zero length descriptor references Oct 15 13:11:37 cog kernel: Oct 15 13:11:37 cog kernel: cdc_acm: probe of 4-1:1.0 failed with error -22 This seems to be widely reported on the net with random ACM hardware so I have switched back to CYGDAT_IO_USB_SLAVE_CLASS_TYPE == "generic" for the time being. With the eCos "generic" USB serial support, I'm issuing: modprobe usbserial vendor=0xffff product=0x0001 and seeing: Oct 15 13:49:49 cog kernel: usb 4-1: new full speed USB device using uhci_hcd and address 35 Oct 15 13:49:59 cog kernel: usb 4-1: configuration #1 chosen from 1 choice Oct 15 13:49:59 cog kernel: usbserial_generic 4-1:1.0: generic converter detected Oct 15 13:49:59 cog kernel: usb 4-1: generic converter now attached to ttyUSB0 So far, so good. I can connect to /dev/ttyUSB0 using minicom and send/receive chars over USB. The remaining problem is that every other char I receive on the eCos side is a copy of the previous character received. If I type "abcdefgh" into minicom, eCos receives "?bbddffh". The very first char received is random. The timing of all received characters is as expected (immediately after hitting the key). The transmission of chars from eCos to minicom is working correctly. Can you see how this issue might arise with your latest STM32 USB driver code? Is there some further tracing I could add to debug this? -- 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.