Need help with warning in PlatformIO ESP-IDF for ESP32-S3 timer ISR

Hi guys I facing this issue with my esp32-s3 timer isr i am using platformio esp-idf any clue to solve this warning?
attachment 0
Solution:
This represents memory regions inside the internal RAM (IRAM) of ESP32. I don't use PlatformIO but usually because of the deprecated timer.h build failed. In your case, it seems like IDE couldn't locate the relevant libraries. Please try this example code to test and also follow instructions from the readme file https://github.com/espressif/esp-idf/blob/master/examples/system/esp_timer/main/esp_timer_example_main.c
GitHub
esp-idf/examples/system/esp_timer/main/esp_timer_example_main.c at ...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - espressif/esp-idf
Jump to solution
5 Replies
v_ajay
v_ajay9mo ago
Declaration (src/Test_timer.c:32:23): This is where the function is first introduced before its actual definition. Make sure the section attribute here matches the one you intend to use. Definition (src/Test_timer.c:51:1): This is where the function's code is actually written. The section attribute here must match the one in the declaration. Choose which section you actually want to use (.iram1.0 or .iram1.1), and then make sure both the declaration and definition of timer_callback use that same section. Hope this will resolve the warning. @Umesh Lokhande @MCU, MPU & Firmware seniors Please give feedback about the answer
kingrom
kingrom9mo ago
what is (.iram1.0 or .iram1.1) ?
Solution
Umesh Lokhande
Umesh Lokhande9mo ago
This represents memory regions inside the internal RAM (IRAM) of ESP32. I don't use PlatformIO but usually because of the deprecated timer.h build failed. In your case, it seems like IDE couldn't locate the relevant libraries. Please try this example code to test and also follow instructions from the readme file https://github.com/espressif/esp-idf/blob/master/examples/system/esp_timer/main/esp_timer_example_main.c
GitHub
esp-idf/examples/system/esp_timer/main/esp_timer_example_main.c at ...
Espressif IoT Development Framework. Official development framework for Espressif SoCs. - espressif/esp-idf
kingrom
kingrom9mo ago
thank you :goodjob:
youcef_ali
youcef_ali8mo ago
You need to create a function using the same prototype, this function is called when an interrupt is triggered
Want results from more Discord servers?
Add your server