Dynamically switch between USB CDC (Communications Device Class) mode and USB MSC (Mass Storage Class) mode

Is it possible to dynamically switch between USB CDC (Communications Device Class) mode and USB MSC (Mass Storage Class) mode on the nRF52840? If so, could you outline the steps or best practices for implementing this functionality within the firmware?

Parents
  • Hi,

     

    A USB descriptor is static, meaning that if you append or adjust the content, you need to also change the VID/PID.

    In Windows, a unique VID/PID will be cached the very first time its enumerated on your machine and re-used for subsequent enumerations of this specific device.

     

    In order to use both CDC ACM and MSC, you need to have both included in your descriptor.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    A USB descriptor is static, meaning that if you append or adjust the content, you need to also change the VID/PID.

    In Windows, a unique VID/PID will be cached the very first time its enumerated on your machine and re-used for subsequent enumerations of this specific device.

     

    In order to use both CDC ACM and MSC, you need to have both included in your descriptor.

     

    Kind regards,

    Håkon

Children
No Data
Related