Hi Marten ,

See https://github.com/apache/nuttx/pull/4784

Furthermore once all the caching was working, the USB driver had a bug
that the bulk endpoints was getting confused with the interrupt endpoints
and although sized to 512 where reporting a max size of 1024 causing more
fun memory overwrites.

So it was because of memory overwrites.

How would you suggest it be changed?

David

-----Original Message-----
From: Mårten Svanfeldt <marten.svanfe...@actia.se>
Sent: Friday, September 15, 2023 4:23 AM
To: dev@nuttx.apache.org
Subject: iMXRT usbdev endpoint allocation problem

Hi,


I'm in the process of updating our internal NuttX from version 10.1 to
12.2.1, and ran into some issues with usb device code on iMXRT.


We have a device that exposes a custom class with a fixed endpoint mapping
(the toolstack in the other end expects certain endpoint mappings, using
ep1 and ep2 for bulk transfers), and I can make it work again by reverting
the following commit
https://github.com/apache/nuttx/commit/c077361a8a9fc9182b988dee7224043022e
ea841


>From a theoretical standpoint I don't understand why that commit was ever
made. The USB controller in iMXRT10xx series, which is same as in other
iMX chips (iMX6 for example) has no limitations of that certain endpoints
needs to map to interrupt/bulk/iso, so I would suggest that the change
itself is actually wrong and should be reverted upstream. Does anyone have
any more background on the change, the git commit message is very terse...


Regards

Marten Svanfeldt

Reply via email to