How can I access non-REPL UART over USB?
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
docs: No instructions for REPL over UART on RP2
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