nRF52840 receive USB command under Mass Storage

Hello Everyone,

I search a lot of time but I don't find any solution.

I looking for a solution to send "command" when the nRF52840 have an USB Mass Storage configuration.

We use the SDK 15.3.0 and the mass storage works fine.

I search some information about SCSI command and UFI command but under the SDK, I never find nothing.

So, I don't know if it's possible but I needs some help or some "link" to find the better solution.

Thank you a lot to everyone and I hope that it exist a solution.

Best regards,

Damien

Parents Reply Children
  • It is possible to use CDC and MSC at the same time, but it requires you to understand what the code is actually doing.

    You need

    1. IAD (Interface associaltion descriptor) because you no longer can use default USB class as MSC and CDC collide
    2. Assign different endpoints since the interfaces each use their own

    This is a lot easier in the newer Zyphr based SDKs, IIRC supported out-of-the-box.

  • Thank for this description.

    I looking for some information about the IAD part in the SDK 15.3.0 but I don't find some example...

    (only the APP_USBD_CDC_ACM_DEFAULT_DESC to define some class description but I don't know how use it...)

    In the actual product, we can't change the SDK to the Zephyr (it's a lot of works for now)(but for the futur, we switch to the Zephyr base certainly).

    -> Have you an example about the IAD with the SDK 15.3.0 ?

    Thank you again. Best regards,

    Damien

Related