Site icon volt.tech

esp_sleep_enable_uart_wakeup with CONFIG_CONSOLE_UART_CUSTOM configuration

I am testing “esp_sleep_enable_uart_wakeup” function.

I have connected to UART0 (GPIO3 U0RX, GPIO1 U0TX) an external LTE module and I would like to wake up ESP32 when it is in light sleep but the external module send a particular string on the UART0.

I have done a very simple test. It seems to work, but as soon as I change these configuration for CONSOLE debug output from the default to the below ones:

CONFIG_CONSOLE_UART_DEFAULT= CONFIG_CONSOLE_UART_CUSTOM=y CONFIG_CONSOLE_UART_NONE= CONFIG_CONSOLE_UART_CUSTOM_NUM_0= CONFIG_CONSOLE_UART_CUSTOM_NUM_1=y CONFIG_CONSOLE_UART_NUM=1 CONFIG_CONSOLE_UART_TX_GPIO=25 CONFIG_CONSOLE_UART_RX_GPIO=27 CONFIG_CONSOLE_UART_BAUDRATE=115200

It doesn’t work. I would like to use UART1 to send out the debugs because UART0 is occupied to talk with the external module: but the changes in the SDK config (only the one reported above) seems to be the cause of the issue.

How to solve the issue?

Exit mobile version