Linker error 'IRAM0 segment data does not fit' #11062
Replies: 3 comments 5 replies
-
Not a bug. The newer Arduino core needs a little more resources. Looks like this slightly difference is too much to fit in IRAM. Your code needs to be optimized to use less IRAM. Or stay at the older core. |
Beta Was this translation helpful? Give feedback.
-
We are not using IRAM in Arduino and have turned many IRAM optimizations OFF in IDF, but that does not mean that IDF itself has not added IRAM functions itself. That and the fact that one of the external libraries in your project are also adding IRAM functions is what usually leads to this. |
Beta Was this translation helpful? Give feedback.
-
I had a look at https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32/api-guides/performance/ram-usage.html and tried a few tweaks in
-- unfortunately without luck. Any other hints? |
Beta Was this translation helpful? Give feedback.
-
Board
ESP32 Dev Module
Device Description
WaveShare E-Paper ESP32 Driver Board
Hardware Configuration
not relevant
Version
v3.1.2
IDE Name
Arduino IDE
Operating System
Linux
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
115200
Description
Compiling works of without any errors using esp32:esp32@3.0.7, but fails with a iram0_0_seg overflow linker error using esp32:esp32@3.1.0 or later.
The library versions remain unchanged in both cases.
Sketch
Waveshare_7_5_T7_Sensors.ino
Debug Message
Other Steps to Reproduce
See CI for reference:
https://github.com/matthias-bs/ESP32-e-Paper-Weather-Display/actions/runs/12346840604 (ok)
arduino-cli Version: 1.1.1
esp32:esp32@3.0.7 (idf-release_v5.1)
https://github.com/matthias-bs/ESP32-e-Paper-Weather-Display/actions/runs/13746757534 (failed)
arduino-cli Version: 1.2.0
esp32:esp32@3.1.3 (idf-release_v5.3)
The solution proposed in #10756 was not applicable in my case, because I was already using
ARDUINO_ISR_ATTR
.I have checked existing issues, online documentation and the Troubleshooting Guide
Beta Was this translation helpful? Give feedback.
All reactions