Skip to content

section .text' will not fit in region iram1_0_seg' #2908

Closed
@olileger

Description

@olileger

Basic Infos

Hardware: ESP-8266
Core Version: 2.3.0

Description

I try to write my own firmware for my WeMos d1 mini.
I got a main *.ino file that calls a manager.
This manager handles all the application : setup, loop, calls to dependencies (DHT sensor, Wifi controller and so on).
I've written this manager in C++.
Today I tried to add few lines of code to add new features but I'm stopped by a linker error : section .text' will not fit in region iram1_0_seg'
I've ICACHE_FLASH_ATTR-ed all my function but unfortunately it has no solved my issue so I wonder to know what am I doing wrong.

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB/3MB
CPU Frequency: 80Mhz
Upload Using: SERIAL (USB)
Compiling env : Windows 10, Arduino 1.6.13 (CLI mode)

Sketch

My firmware is available at https://github.com/olileger/iot/tree/master/esp/ESP8266_Firmware

Debug Messages

Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
c:/users/XXXXXX/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/../lib/gcc/xtensa-lx106-elf/4.8.2
/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\XXXXXX\AppData\Local\Temp\arduino_build_110175/ESP8266_Firmware.ino.elf section `.text' will not fit in region `iram1_0_seg'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board WeMos D1 R2 & mini.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions