You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a LD file to AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\tools\sdk\ld called eagle.flash.4m2m and insert the bellow contents. Hint. Just make a .txt file and add .ld file extension to the end
/* Flash Split for 4M chips */
/* sketch 1019KB */
/* empty 1024KB */
/* spiffs 2028KB */
/* eeprom 20KB */
MEMORY
{
dport0_0_seg : org = 0x3FF00000, len = 0x10
dram0_0_seg : org = 0x3FFE8000, len = 0x14000
iram1_0_seg : org = 0x40100000, len = 0x8000
irom0_0_seg : org = 0x40201010, len = 0xfeff0
}
PROVIDE ( _SPIFFS_start = 0x40400000 );
PROVIDE ( _SPIFFS_end = 0x405FB000 );
PROVIDE ( _SPIFFS_page = 0x100 );
PROVIDE ( _SPIFFS_block = 0x2000 );
INCLUDE "../ld/eagle.app.v6.common.ld"
The text was updated successfully, but these errors were encountered:
I found that sketches over 500KB wont OTA Update on the 3MB SPIFFS version as there is not enough space before the SPIFFS memory allocation.
1MB SPIFFS seems like a waste, so we need a 2MB SPIFFS option that has 1MB BEFORE the SPIFFS flash allocations to allow > 500KB OTA updates
Bellow is how I achieve this on my NodeMCU (actually a custom board but I still use nodeMCU board def.)
Add this to AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\board.txt file
Scroll down to NodeMCU 1.0v and add it there.
Add a LD file to AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\tools\sdk\ld called eagle.flash.4m2m and insert the bellow contents. Hint. Just make a .txt file and add .ld file extension to the end
The text was updated successfully, but these errors were encountered: