How to change UART and its pins for REPL in Pico? #16838
Unanswered
msawicki-poland
asked this question in
RP2040 / Pico
Replies: 2 comments 3 replies
-
maybe this will help on page 9 - https://www.waveshare.com/w/upload/b/b0/Pico_python_sdk.pdf |
Beta Was this translation helpful? Give feedback.
1 reply
-
To use UART0 pins other than the default ones, you can try to add these to your board's "mpconfigboard.h" file (for example):
GPIOs have specific functions as described in "rp2_af.csv" for UART0 we have these GPIOs to choose from:
MicroPython's REPL is hardcoded to use UART0. I dont know how to force it to use UART1 in the firmware. However, you can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built Micropython with
#define MICROPY_HW_ENABLE_UART_REPL (1)
and uploaded uf2 file and it worksbut how to change UART0 to UART1 and pins 0/1 to 4/5 for REPL in Pico, what I have to configure in Micropython project's files before building?
Beta Was this translation helpful? Give feedback.
All reactions