Uart driver Install fail - ESP_ERR_NOT_FOUND
Posted: Mon Apr 29, 2024 8:28 pm
Chip: ESP32S3
IDF: 4.4
When calling
The call fails with ESP_ERR_NOT_FOUND about 5% of the times. Hence the problem is not easily reproducible.
I replaced the call with 3 different calls
Now when the error happens, it fails install with both LOWMED and HIGH interrupt flags but succeeds with SHARED flag. However, with SHARED flag the uart communication doesn't work.
IDF: 4.4
When calling
Code: Select all
uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, 0);
I replaced the call with 3 different calls
Code: Select all
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_LOWMED); // same as using 0
if (err == ESP_ERR_NOT_FOUND)
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_HIGH);
if (err == ESP_ERR_NOT_FOUND)
esp_err_t err = uart_driver_install(UART_NUM_1, rx_buf, tx_buf, q_size, &queue, ESP_INTR_FLAG_SHARED);