How to switch between USB Console Framework and USB Communication Framework using same USB Port during runtime?


actually I'm using USBFS as an USB Console Framework.

Now I would like to use the same USB Port as a simple USB Communication Framework to communicate with a Windows Programm via an virtual com port connection.


I tried to configure a new separate USB Communication Framework using the same "g_ux_device_class_cdc_acm0" instance for both frameworks (console and communication framework) but that doesn't work, I guess "g_ux_device_class_cdc_acm0" won't know where to pass the rx data, console or communication framework...

Is there any solution, to reconfigure the the USB port to the required framework during runtime?

Many thanks in advance and best regards