Skip to content

Switch between USB Host and USB Device modes #447

@doctea

Description

@doctea

Is your feature request related to a problem? Please describe.
I am working on an RP2040 project where sometimes it would be useful to use it as a USB MIDI host, other times as a USB MIDI device. The hardware I'm building on doesn't provide for adding the "second" USB port on GPIO, so it'd be great to be able to switch between the two without requiring recompilation.

Describe the solution you'd like
Most ideal would be if it were possible to switch between host and device mode on the fly, without rebooting the MCU.

Alternatively, being able to choose which mode to start in without requiring recompilation could work (eg a 'reboot into device mode', 'reboot into host mode' option that sets a flag in flash that chooses which mode the USB starts up in.

I appreciate this might not be a trivial feature, but it would be really useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions