mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 05:34:32 +02:00
bootloader_support: fix uart1 no printing in the 2nd bootloader stage
This commit is contained in:
@@ -61,6 +61,9 @@ void bootloader_console_init(void)
|
|||||||
const int uart_tx_gpio = CONFIG_ESP_CONSOLE_UART_TX_GPIO;
|
const int uart_tx_gpio = CONFIG_ESP_CONSOLE_UART_TX_GPIO;
|
||||||
const int uart_rx_gpio = CONFIG_ESP_CONSOLE_UART_RX_GPIO;
|
const int uart_rx_gpio = CONFIG_ESP_CONSOLE_UART_RX_GPIO;
|
||||||
|
|
||||||
|
// Switch to the new UART (this just changes UART number used for esp_rom_printf in ROM code).
|
||||||
|
esp_rom_uart_set_as_console(uart_num);
|
||||||
|
|
||||||
// If console is attached to UART1 or if non-default pins are used,
|
// If console is attached to UART1 or if non-default pins are used,
|
||||||
// need to reconfigure pins using GPIO matrix
|
// need to reconfigure pins using GPIO matrix
|
||||||
if (uart_num != 0 ||
|
if (uart_num != 0 ||
|
||||||
|
Reference in New Issue
Block a user