Skip to content

Commit d6c7430

Browse files
mcsprdevyte
authored andcommitted
Fix negative SPIFFS size (#5522)
1 parent 3a36501 commit d6c7430

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: tools/boards.txt.py

+1
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ def flash_map (flashsize_kb, spiffs_kb = 0):
12061206
sys.stdout = open(lddir + ld, 'w')
12071207

12081208
if spiffs_kb == 0:
1209+
spiffs_start = spiffs_end
12091210
page = 0
12101211
block = 0
12111212
elif spiffs_kb < 0x80000 / 1024:

Diff for: tools/sdk/ld/eagle.flash.2m.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Flash Split for 2M chips */
22
/* sketch @0x40200000 (~1019KB) (1044464B) */
3-
/* empty @0x402FEFF0 (~1028KB) (1052688B) */
4-
/* spiffs @0x40400000 (~-20KB) (-20480B) */
3+
/* empty @0x402FEFF0 (~1008KB) (1032208B) */
4+
/* spiffs @0x403FB000 (~0KB) (0B) */
55
/* eeprom @0x403FB000 (4KB) */
66
/* rfcal @0x403FC000 (4KB) */
77
/* wifi @0x403FD000 (12KB) */
@@ -14,7 +14,7 @@ MEMORY
1414
irom0_0_seg : org = 0x40201010, len = 0xfeff0
1515
}
1616

17-
PROVIDE ( _SPIFFS_start = 0x40400000 );
17+
PROVIDE ( _SPIFFS_start = 0x403FB000 );
1818
PROVIDE ( _SPIFFS_end = 0x403FB000 );
1919
PROVIDE ( _SPIFFS_page = 0x0 );
2020
PROVIDE ( _SPIFFS_block = 0x0 );

Diff for: tools/sdk/ld/eagle.flash.4m.ld

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Flash Split for 4M chips */
22
/* sketch @0x40200000 (~1019KB) (1044464B) */
3-
/* empty @0x402FEFF0 (~3076KB) (3149840B) */
4-
/* spiffs @0x40600000 (~-20KB) (-20480B) */
3+
/* empty @0x402FEFF0 (~3056KB) (3129360B) */
4+
/* spiffs @0x405FB000 (~0KB) (0B) */
55
/* eeprom @0x405FB000 (4KB) */
66
/* rfcal @0x405FC000 (4KB) */
77
/* wifi @0x405FD000 (12KB) */
@@ -14,7 +14,7 @@ MEMORY
1414
irom0_0_seg : org = 0x40201010, len = 0xfeff0
1515
}
1616

17-
PROVIDE ( _SPIFFS_start = 0x40600000 );
17+
PROVIDE ( _SPIFFS_start = 0x405FB000 );
1818
PROVIDE ( _SPIFFS_end = 0x405FB000 );
1919
PROVIDE ( _SPIFFS_page = 0x0 );
2020
PROVIDE ( _SPIFFS_block = 0x0 );

0 commit comments

Comments
 (0)