← index #8560Issue #18875
Related · high · value 1.370
QUERY · ISSUE

How can I access non-REPL UART over USB?

openby sk0gopened 2022-04-18updated 2024-09-08
port-rp2

So I'm using the RP2 port of MicroPython.

Is there a way to, at runtime, switch to EG UART1 communication? By default I get the Python REPL, which is fine but I'm trying to expose UART1, with all its relevant programming, over the USB connection. Ideally would avoid the hardware pin-connected adapter if at all possible.

I can see USB_VCP [0] is a thing, but it's only for PyBoard. CircuitPython [1] for example allows defining another virtual USB device, and mapping it to UART from what I can tell. There is also a community patch that does just this, but it's a git patch and possibly leads to other issues [2].

[0] https://docs.micropython.org/en/latest/library/pyb.USB_VCP.html
[1] https://learn.adafruit.com/customizing-usb-devices-in-circuitpython?view=all#add-a-second-serial-port-3096573-2
[2] https://forums.raspberrypi.com/viewtopic.php?t=305834

CANDIDATE · ISSUE

docs: No instructions for REPL over UART on RP2

openby MarcelloTheArcaneopened 2026-02-26updated 2026-03-04
docs

Documentation URL

https://docs.micropython.org/en/latest/rp2/quickref.html

Description

On the UART documentation page, there is a note:

REPL over UART is disabled by default. You can see the Getting started with MicroPython on the RP2xxx for details on how to enable REPL over UART.

If you follow the link to the "getting started" page (https://docs.micropython.org/en/latest/rp2/tutorial/intro.html#rp2-intro), it just says:

Getting started with MicroPython on the RP2xxx
Let’s get started!

I can't seem to find any instructions for accessing the REPL over UART (i.e. which UART pins, and how to configure Micropython).

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied