Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By Woody
#14368 Thanks to your work.
I try to flash esphttpd example to my esp board http://myesp8266.blogspot.ro/2015/03/ot ... board.html - and have got an error, see below. Can you advise me what to do to solve this error. Thanks Woody

16:21:43 **** Build of configuration Default for project esphttpd ****
mingw32-make.exe -f C:/Espressif/examples/esphttpd/Makefile flash
c:/Espressif/utils/esptool.exe -p COM3 -b 115200 write_flash -ff 40m -fm qio -fs 4m 0x00000 firmware/eagle.flash.bin 0x40000 firmware/eagle.irom0text.bin
Entering bootloader...
Connecting...
Erasing flash...
head: 9 ;total: 9
erase size : 20480

Writing at 0x00000000... (2 %)

Writing at 0x00008800... (100 %)
Erasing flash...
head: 16 ;total: 40
erase size : 98304

Writing at 0x00040000... (0 %)

Writing at 0x00067000... (100 %)

Leaving...
c:/Espressif/utils/esptool.exe -p COM3 -b 115200 write_flash -ff 40m -fm qio -fs 4m 0x79000 c:/Espressif/ESP8266_SDK/bin/clear_eep.bin 0x7c000 c:/Espressif/ESP8266_SDK/bin/esp_init_data_default.bin 0x7e000 c:/Espressif/ESP8266_SDK/bin/blank.bin
Entering bootloader...
Connecting...
Traceback (most recent call last):
File "esptool.py", line 559, in <module>
File "esptool.py", line 154, in connect
Exception: Failed to connect
C:/Espressif/examples/esphttpd/Makefile:354: recipe for target 'flash' failed
mingw32-make.exe: *** [flash] Error 255

16:22:13 Build Finished (took 30s.500ms)
User avatar
By Kevin Uhlir (N0BEL)
#14383
Markus Gritsch wrote:
Markus Gritsch wrote:c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'


I did a fresh install of CERTS 2.0.2 toolchain, cleaned the NodeMCU repository, and made a new build, and now it links without an error. Yay!

Maybe some old compilation output was not cleaned up previously, but it' working fine now :)


I'm in the same situation, Windows toolchain.
I tried to fix it with the following (as: Markus was successful doing this)
grabbed CHERTS devkit updated c:\Espressif,
downloaded Espressif-ESP8266-DevKit-v2.0.2-x861.exe, updated that..

but no joy.

Or is this simply a limitation of the windows toolchain?

Kevin
User avatar
By Kevin Uhlir (N0BEL)
#14765
Markus Gritsch wrote:Alas, "Kevin Uhlir (N0BEL)" is right. After pulling the current NodeMCU dev branch, I again get
section `.text' will not fit in region `iram1_0_seg'
when using CHERTS toolchain on Windows :(


Thanks for responding. For now I've just dropped the math module like others have.

/Kevin