This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001024] STM32 USB driver and proposed USB API change


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024

Chris Holgate <chris@zynaptic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #994 is|0                           |1
           obsolete|                            |

--- Comment #22 from Chris Holgate <chris@zynaptic.com> 2010-10-16 20:29:58 BST ---
Created an attachment (id=1000)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1000)
STM32 USB driver package fixing double buffering configuration bug.

The bug which was causing alternate bulk transfer packets to fail was due to
misconfiguration of the receive bulk transfer endpoint.  My own class driver
masked the bug because of the particular order in which it configured the
endpoints.  The updated USB driver package should fix this problem for the
serial port class driver.  A couple of points to note:

1) When using the serial port class driver, the variable length bulk transfer
option must be deselected.  This option may benefit from another descriptive
name in order to avoid confusion.

2) To avoid buffer overflow conditions on large transfers, all calls to the
serial port receive functions should specify a buffer which is a multiple of
the bulk transfer message size for the bulk transfer endpoint (usually 64
bytes).

-- 
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]