This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365 DM368 USB Host/Device role switching

For a special application I need the DM365 USB to work both as HOST (for USB mass Storage Device) and DEVICE (HID or CDC device). User is required to select the desired mode before switching on the equipment.

Of course I don't need HOST and DEVICE mode to work together: user will switch off the DM365, make the necessary HW setting and power it again.

I know dm365 and linux kernel support  HOST and DEVICE operating mode and I have tested them.

What I would like to know is if there is a way to switch between them without the need to recompile for example loading different kernel module or whatever..