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?
Solution:Jump to 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.cGitHub
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
5 Replies
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
what is (.iram1.0 or .iram1.1) ?
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.cGitHub
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
thank you :goodjob:
You need to create a function using the same prototype, this function is called when an interrupt is triggered