Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

General • Re: Redirect UART from pico debug probe to gpio 16 and 17

$
0
0
I think you should use
stdio_uart_init_full
void stdio_uart_init_full (uart_inst_t * uart, uint baud_rate, int tx_pin, int rx_pin)
Perform custom initialization initialize stdin/stdout over UART and add it to the current set of stdin/stdout drivers.
Parameters
uart the uart instance to use, uart0 or uart1
baud_rate the baud rate in Hz
tx_pin the UART pin to use for stdout (or -1 for no stdout)
rx_pin the UART pin to use for stdin (or -1 for no stdin)
instead of uart_init(UART_ID, BAUD_RATE);

No need to change the defaults but use explicit definition.

Statistics: Posted by gmx — Wed Jan 21, 2026 5:40 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles