From 133cfd8dc9ff0140ea8f7cdee92f482046a12954 Mon Sep 17 00:00:00 2001 From: Song Ruo Jing Date: Mon, 10 Nov 2025 21:14:39 +0800 Subject: [PATCH] fix(console): UART0 TX pin was not properly disabled Closes https://github.com/espressif/esp-idf/issues/16764 Closes https://github.com/espressif/esp-idf/issues/17459 --- components/bootloader_support/src/bootloader_console.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bootloader_support/src/bootloader_console.c b/components/bootloader_support/src/bootloader_console.c index 94b68c61d5..00b5b4e6b0 100644 --- a/components/bootloader_support/src/bootloader_console.c +++ b/components/bootloader_support/src/bootloader_console.c @@ -30,6 +30,7 @@ static void __attribute__((unused)) release_default_console_io(void) { // Default console is UART0 with TX and RX on their IOMUX pins gpio_ll_output_disable(&GPIO, U0TXD_GPIO_NUM); + gpio_ll_func_sel(&GPIO, U0TXD_GPIO_NUM, PIN_FUNC_GPIO); // Set TX pin to GPIO function to truly disable output esp_rom_gpio_connect_in_signal(GPIO_MATRIX_CONST_ONE_INPUT, UART_PERIPH_SIGNAL(UART_NUM_0, SOC_UART_PERIPH_SIGNAL_RX), 0); }