USB MSD device enable/disable within composite device

 I submitted this ticket about dynamically changing the USB descriptor to enable or disable the MSD device

https://devzone.nordicsemi.com/f/nordic-q-a/85653/dynamically-changing-usb-descriptor-on-ncs

The original case is locked, but to further explain the options and new observations:

The advice was to do what the Segger does for "msdenable"/"msddisable".

Upon further research of what Segger does in this case is that they actually change the USB descriptor to add/remove the MSD entries.  However the entries in the current SDK are not easily added or removed during runtime.  So I still have the same request, any suggestion on how to do this short of rewriting the SDK to store the USB descriptor in Memory or a way to skip the MSD device entries.

I can provide the descriptors sent by the Segger in each case if that helps, but the current SDK does not seem to support this type of functionality.

It seems there is a usb_fix_descriptor() function that might could filter out the MSD descriptor?

Related