Yes. We have also query and asked few questions related to this to ESP SDK developers for same.Shcreasey wrote:Hi @ESP_Angus
Would it be safe to only place functions in IRAM that are called by enabled interrupts?
For example if the pattern match interrupt is disabled can these functions be excluded safely from IRAM etc?
Thanks,
UART ISR not located in IRAM
Re: UART ISR not located in IRAM
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: UART ISR not located in IRAM
Please check the following two sections of the docs on placing code into IRAM:
https://docs.espressif.com/projects/esp ... uction-ram
https://docs.espressif.com/projects/esp ... t-handlers
These discuss both the performance aspect and considerations for interrupts being called while cache is disabled.
See also this comment on a similar question on GitHub: https://github.com/espressif/esp-idf/is ... -421869837
https://docs.espressif.com/projects/esp ... uction-ram
https://docs.espressif.com/projects/esp ... t-handlers
These discuss both the performance aspect and considerations for interrupts being called while cache is disabled.
See also this comment on a similar question on GitHub: https://github.com/espressif/esp-idf/is ... -421869837
Re: UART ISR not located in IRAM
Thanks for providing useful information.ESP_igrr wrote:Please check the following two sections of the docs on placing code into IRAM:
https://docs.espressif.com/projects/esp ... uction-ram
https://docs.espressif.com/projects/esp ... t-handlers
These discuss both the performance aspect and considerations for interrupts being called while cache is disabled.
See also this comment on a similar question on GitHub: https://github.com/espressif/esp-idf/is ... -421869837
I have one question like if I enabled whole uart.c file into IRAM from linker script then does it will create any problem in later stage as we need UART ISR to be executed as high priority with Flash APIs.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Re: UART ISR not located in IRAM
It increases IRAM usage, so at later stage you may run out of IRAM if more functions are added to IRAM.if I enabled whole uart.c file into IRAM from linker script then does it will create any problem in later stage as we need UART ISR to be executed as high priority with Flash APIs.
Also you do this by modifying the linker script, which makes it harder to update to new IDF version in the future.
Aside from these two, I can't think of any other possible issue.
Re: UART ISR not located in IRAM
Hi,ESP_igrr wrote:It increases IRAM usage, so at later stage you may run out of IRAM if more functions are added to IRAM.if I enabled whole uart.c file into IRAM from linker script then does it will create any problem in later stage as we need UART ISR to be executed as high priority with Flash APIs.
Also you do this by modifying the linker script, which makes it harder to update to new IDF version in the future.
Aside from these two, I can't think of any other possible issue.
Thanks for quick response regarding that issue.
I am planning to just add uart.c file into IRAM section as we tried to enable uart driver install with IRAM FLAG as IRQ but didn't get any success for that.
We have also checked IRAM size which is about to increase 4 to 5 KB after adding uart.c into IRAM from linker script.
We are also planning to switch into newer IDF in later stage but at that time we will manage it by our-self for that.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: Baldhead and 100 guests