Cant wake up from UART_NUM_1
Posted: Tue Jan 14, 2020 2:00 pm
Hi! I'm trying to make the UART_NUM_1 wake me up from light sleep with the following code, but it only wakes from the UART 0:
I'm configuring the UART with the following code:
In my understanding, this should work but I'm not sure whether I'm doing something wrong or there is something different between both UART.
I'm on version v3.2.2-290-g287bee03b3 (8a69ffc36f166c964d7c30188a865847bf199561).
PD: I don't know who or where to contact: I've tried to register with another email but probably due to a `ñ` on my name it won't send me the activation email, I'd like to delete that account so I can use the email on this one.
Code: Select all
ESP_ERROR_CHECK(esp_sleep_enable_uart_wakeup(0));
ESP_ERROR_CHECK(uart_set_wakeup_threshold(0, 3));
ESP_ERROR_CHECK(esp_sleep_enable_uart_wakeup(UART_NUM_1));
ESP_ERROR_CHECK(uart_set_wakeup_threshold(UART_NUM_1, 3));
Code: Select all
uart_config_t uart_config = {
.baud_rate = 115200,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.use_ref_tick = true
};
ESP_ERROR_CHECK(uart_param_config(UART_NUM_1, &uart_config));
ESP_ERROR_CHECK(uart_driver_install(UART_NUM_1, 2*1024, 0, 0, NULL, 0));
ESP_ERROR_CHECK(uart_set_pin(UART_NUM_1, 26, 27, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE));
I'm on version v3.2.2-290-g287bee03b3 (8a69ffc36f166c964d7c30188a865847bf199561).
PD: I don't know who or where to contact: I've tried to register with another email but probably due to a `ñ` on my name it won't send me the activation email, I'd like to delete that account so I can use the email on this one.