10000 Switch between USB Host and USB Device modes · Issue #447 · adafruit/Adafruit_TinyUSB_Arduino · GitHub
[go: up one dir, main page]

Skip to content

Switch between USB Host and USB Device modes #447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
doctea opened this issue Aug 4, 2024 · 2 comments
Closed

Switch between USB Host and USB Device modes #447

doctea opened this issue Aug 4, 2024 · 2 comments
Labels
Feature New feature or request

Comments

@doctea
Copy link
doctea commented Aug 4, 2024

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.

@doctea doctea added the Feature New feature or request label Aug 4, 2024
@samspencer5991
Copy link

This would be a very useful inclusion

@hathach
Copy link
Member
hathach commented May 21, 2025

currrently we don't have plan or time to do this

@hathach hathach closed this as completed May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
0