UART ISR in IRAM config?

A6ESPF
Posts: 28
Joined: Tue Dec 10, 2019 12:16 pm

UART ISR in IRAM config?

Postby A6ESPF » Mon Jan 30, 2023 10:12 am

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?

sdt991
Posts: 3
Joined: Thu May 25, 2023 5:50 pm

Re: UART ISR in IRAM config?

Postby sdt991 » Tue Jun 06, 2023 9:18 pm

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.

homedad
Posts: 9
Joined: Sun Jan 23, 2022 2:53 am

Re: UART ISR in IRAM config?

Postby homedad » Mon Mar 18, 2024 5:47 pm

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.

Who is online

Users browsing this forum: No registered users and 207 guests