Page 1 of 1

UART ISR in IRAM config?

Posted: Mon Jan 30, 2023 10:12 am
by A6ESPF
When enabling the CONFIG_UART_ISR_IN_IRAM option, I get the following log message when booting the board:

Code: Select all

I (241961) uart: ESP_INTR_FLAG_IRAM flag not set while CONFIG_UART_ISR_IN_IRAM is enabled, flag updated
What does it mean exactly? Is there something I need to do to get rid of the message and set the required flag by default?

Re: UART ISR in IRAM config?

Posted: Tue Jun 06, 2023 9:18 pm
by sdt991
It's just a warning that the caller of `uart_driver_install()` did not specify the `ESP_INTR_FLAG_IRAM` flag, while the ISR is placed into IRAM by the sdkconfig option `CONFIG_UART_ISR_IN_IRAM=y`

https://github.com/espressif/esp-idf/bl ... 4-L1531C54

You could add the `ESP_INTR_FLAG_IRAM` flag when calling `uart_driver_install()` or just ignore it.

Re: UART ISR in IRAM config?

Posted: Mon Mar 18, 2024 5:47 pm
by homedad
This is a very old post, but the warning is being thrown from the esp_console.c module in IDF 5.2 because no flags are passed in to the uart_driver_install call in esp_console_new_repl_uart(). To fix this, the console module should pay attention to the CONFIG_UART_ISR_IN_IRAM flag, or let the caller configure through the esp_console_dev_uart_config_t struct.