Programmatically switching console between USB and UART? #19665
Answered
by
andrewleech
mungewell
asked this question in
RP2040 / Pico
|
Is there a way to programmatically switch console between USB and UART (pins 1 & 2)? I have a project/script which is really stressing the CPU and is time critical; I am seeing that USB traffic is being delayed and I think that the console is playing it's part in this.... I can build a UF2 with the console compiled to being on UART, but then that's a bit more work for my users. Hoping there is a way to switch operation, so that it's only on the UART when the project is in particular modes (ie. connected to send Midi Timecode via USB). |
Answered by
andrewleech
Aug 29, 2026
Replies: 1 comment 1 reply
|
I'm pretty sure at the moment only the stm32 port has support for dynamically switching on/off the built-in repl channels (uart/usb-cdc) via os.dupterm, in the other ports it can only be changed at compile time. |
1 reply
Answer selected by
mungewell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm pretty sure at the moment only the stm32 port has support for dynamically switching on/off the built-in repl channels (uart/usb-cdc) via os.dupterm, in the other ports it can only be changed at compile time.