From 6cb7d8212085d1c6480f9e0d4f80ab988397608c Mon Sep 17 00:00:00 2001 From: morris Date: Wed, 11 Mar 2020 12:30:27 +0800 Subject: [PATCH] esp32s2: fix default console GPIO on ESP32-S2, the default GPIO used for UART0 is: TX-43, RX-44 --- components/esp_common/Kconfig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/esp_common/Kconfig b/components/esp_common/Kconfig index d394393b8..87b279a06 100644 --- a/components/esp_common/Kconfig +++ b/components/esp_common/Kconfig @@ -67,7 +67,7 @@ menu "Common ESP-related" help Select whether to use UART for console output (through stdout and stderr). - - Default is to use UART0 on pins GPIO1(TX) and GPIO3(RX). + - Default is to use UART0 on pre-defined GPIOs. - If "Custom" is selected, UART0 or UART1 can be chosen, and any pins can be selected. - If "None" is selected, there will be no console output on any UART, except @@ -75,7 +75,7 @@ menu "Common ESP-related" bootstrapping GPIO13 pin to low logic level. config ESP_CONSOLE_UART_DEFAULT - bool "Default: UART0, TX=GPIO1, RX=GPIO3" + bool "Default: UART0" config ESP_CONSOLE_UART_CUSTOM bool "Custom" config ESP_CONSOLE_UART_NONE @@ -104,15 +104,15 @@ menu "Common ESP-related" config ESP_CONSOLE_UART_TX_GPIO int "UART TX on GPIO#" - depends on ESP_CONSOLE_UART_CUSTOM - range 0 33 - default 19 + range 0 46 + default 1 if IDF_TARGET_ESP32 + default 43 if IDF_TARGET_ESP32S2 config ESP_CONSOLE_UART_RX_GPIO int "UART RX on GPIO#" - depends on ESP_CONSOLE_UART_CUSTOM - range 0 39 - default 21 + range 0 46 + default 3 if IDF_TARGET_ESP32 + default 44 if IDF_TARGET_ESP32S2 config ESP_CONSOLE_UART_BAUDRATE int "UART console baud rate"