Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By rudy
#73852
Pablo2048 wrote:Why you did not try the simplest approach? Instead of 1/3M division use the 2/2M (I'm using this for months now), so you can upload up to 1MB sketch without any problem? I'm using this on Arduino IDE and on PIO...

I am using 2.4.0 on the Arduino IDE and I don't see a 2/2M option. Can you elaborate?
User avatar
By Pablo2048
#73854 There is discussion about this here https://github.com/esp8266/arduino-esp8 ... /issues/14 , this was our discussion in this forum viewtopic.php?f=32&t=14639 and there is another one in Arduino core github with author of the script which builds boards.txt (sorry, but I can't find it in this moment). So for now you have to:
1. manually modify boards.txt and add linker script OR
2. add this option do boards.txt generator and build boards.txt by this script OR
3. use PIO, which allows for using custom linker script and add build_flags = -Wl, -T./eagle.flash.4m2m.ld into your platformio.ini
Another attempts are here:
https://github.com/esp8266/arduino-esp8 ... /issues/12
https://github.com/esp8266/Arduino/issues/3226