[SOLVED] Error building V2.0 with PlatformIO
Posted: 08 Oct 2019, 23:11
Hello,
First of all, I do apologies in advance if this question is a dummy one, but I'm a newby at ESPEasy, and even after trying to find a solution on Internet, I'm not able to fix the issue myself.
I'm trying to compile ESPEasy V2.0 branch with PlatformIO (Atom version, not VSCode).
Target is ESP8266, 4MB, normal version.
ESPEasy.ino was selected.
No changes to the original GitHub 2.0 version.
ESPEasy-Globals.h contains a "#define PLUGIN_BUILD_NORMAL", other #define PLUGIN_BUILD_xxx are commented out.
Error when linking is:
Thanks in advance for your help,
First of all, I do apologies in advance if this question is a dummy one, but I'm a newby at ESPEasy, and even after trying to find a solution on Internet, I'm not able to fix the issue myself.
I'm trying to compile ESPEasy V2.0 branch with PlatformIO (Atom version, not VSCode).
Target is ESP8266, 4MB, normal version.
ESPEasy.ino was selected.
No changes to the original GitHub 2.0 version.
ESPEasy-Globals.h contains a "#define PLUGIN_BUILD_NORMAL", other #define PLUGIN_BUILD_xxx are commented out.
Error when linking is:
Search on Internet seems to indicate that static text is too large for memory size, and some technics like moving text to flash has to be used (a very common thing for Arduino). As this is the "normal" version (normally the smallest one), without any changes, I guess I'm doing something wrong, very probably with a tricky solution.Linking .pio\build\normal_ESP8266_4096\firmware.elf
c:/users/xxx/documents/home/.platformio/packages/toolchain-xtensa@1.40802.0/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pio\build\normal_ESP8266_4096\firmware.elf section `.text' will not fit in region `iram1_0_seg'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\normal_ESP8266_4096\firmware.elf] Error 1
Thanks in advance for your help,