Chat freely about anything...

User avatar
By Eduardo Pinheiro
#41856 Hi Everyone,

I'm trying to compile an example of olimex https://github.com/OLIMEX/ESP8266/tree/master/IoT%20Firmware/olimex.

When I tried to compile (through the gen_misc.sh script or just by typing "make") with the non-boot version, that for what I understood the diference is that doesn't have access to Espressif cloud (right?), it gives an error of "section `.text' will not fit in region `iram1_0_seg'":

Complete Error:

xtensa-lx106-elf-gcc -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lmain -ljson -lupgrade -lssl -lsmartconfig -lcrypto user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a user/modules/.output/eagle/debug/lib/libmod.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
/opt/Espressif/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'


note that I'm selecting the option 3 (2024kb) in the STEP 5: "choose spi size" as I'm using the esp8266-dev from olimex.

I tried to follow what I found on the web and in their documentation where they mention that due to the fact that I have a 2048kb spi flash, I could change the eagle.app.v6.ld (\esp_iot_sdk\ld), len of irom0_0_seg to 0xC0000. So i did it but still have the same error (i did the make clean, yes).

Any ideas of how to solve it?

note: I compiled with the boot version and worked but I would like to understand if this problem have a solution.

Thanks in advance.