8000 How can I access non-REPL UART over USB? · Issue #8560 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
How can I access non-REPL UART over USB? #8560
Open
@sk0g

Description

@sk0g

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0