can not compile ESP Mega to 1M ESP-01

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sek_is_back
New user
Posts: 2
Joined: 03 Feb 2018, 18:28
Location: Hamburg

can not compile ESP Mega to 1M ESP-01

#1 Post by sek_is_back » 14 Mar 2018, 16:31

Hey there I followed the instruction from the Wiki for the Arduino IDE.

My problem is that I can Upload the ESPEasy Mega bin File to a blue ESP-01 512k without problems. Actually I use the ESP_Easy_v2.0-20180313_normal_ESP8266_1024.bin on my ESP-01

Now I want the use the _P123_LIGHTS.ino For that I removed all unused _P0xx.ino's. From the _P0xx.inos I use only the _P001_Switch, the _P026_Sysinfo.ino and the _P123_LIGHTS.ino. I tryed it on a NodeMCU 4M board and I can compile and runt this without errors. Then I changed to the ESP-01 and received the following Error
Archiving built core (caching) in: D:\SYSTEM~2\TMP\arduino_cache_1319\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____f7025fb08a3574e99f1785948801a9c1.a
c:/program files (x86)/arduino/portable/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: D:\SYSTEM~2\TMP\arduino_build_636611/ESPEasy.ino.elf section `.irom0.text' will not fit in region `irom0_0_seg'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Generic ESP8266 Module.

I tried
512k /64k SPIFFS
512k /128k SPIFFS
with the same results

If I use
512k / no SPIFFS
1M / 64k SPIFFS
I can compile and upload, but the the esp doesnt start

Sketch uses 484049 bytes. Global variables use 51404 bytes
Can anyone help me what I did wrong?

My settings are
Attachments
14-03-_2018_16-14-31.jpg
14-03-_2018_16-14-31.jpg (76.42 KiB) Viewed 2960 times
Last edited by sek_is_back on 15 Mar 2018, 10:33, edited 1 time in total.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: can not compile ESP Mega to 512k ESP-01

#2 Post by Shardan » 14 Mar 2018, 22:24

Really that is interesting.

The Mega .bin file is bigger then 512 kb so it is not suitable for 512kb ESP's.
I'm not sure how it can be possible to upload it to a 512KB chip.

Remember the progger will not report any error as it does not get a readback from the ESP.
The message that the ESP was flashed successfull is a bit misleading. It should just say "Data Sent"... That's all the progger can give.

I think that's the problem with compiling too.
The actual mega .bins are > 6oo kb. It's just not possible to push them into a 512K memory model.

It might be possible to reduce memory by deleting some plugins you do not need from the source folder.
Regards
Shardan

sek_is_back
New user
Posts: 2
Joined: 03 Feb 2018, 18:28
Location: Hamburg

Re: can not compile ESP Mega to 1M ESP-01

#3 Post by sek_is_back » 15 Mar 2018, 11:51

call me color-blind but this one is definitely blue, but with 1024kB Flash, so never trust the Chinese :lol:

so I changed the Arduino Settings to 1M/128kB SPIFFS and that works for me
now it was possible to build in the _P123LIGHTS.ino

case closed
Attachments
IMG_0985.JPG
IMG_0985.JPG (200.16 KiB) Viewed 2913 times

Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests