Skip to content

Linker error 'IRAM0 segment data does not fit' #11059

Closed
@matthias-bs

Description

@matthias-bs

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

/home/mp/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: /tmp/arduino/sketches/EF8ECBDC67641FB780F7048771789765/Waveshare_7_5_T7_Sensors.ino.elf section `.iram0.text' will not fit in region `iram0_0_seg'
/home/mp/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: IRAM0 segment data does not fit.
/home/mp/.arduino15/packages/esp32/tools/esp-x32/2405/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld: region `iram0_0_seg' overflowed by 1520 bytes
collect2: error: ld returned 1 exit status

Error during build: exit status 1

Other Steps to Reproduce

See CI for reference:

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions