1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

inconsistent block size for spiffs in board.txt. and ld files (#5412)

block size of 4096 for all boads of flash size <= 1024, or
blocks size of 4096 for spiffs < 512, or
block size of 8192 for all other boards
This commit is contained in:
apicquot
2018-12-04 04:01:32 -05:00
committed by david gauchard
parent 216680bb57
commit ee3b374e4e
3 changed files with 101 additions and 98 deletions

View File

@ -1154,7 +1154,10 @@ def flash_map (flashsize_kb, spiffs_kb = 0):
else:
max_upload_size = 1024 * 1024 - reserved
spiffs_start = (flashsize_kb - spiffs_kb) * 1024
spiffs_blocksize = 8192
if spiffs_kb < 512:
spiffs_blocksize = 4096
else:
spiffs_blocksize = 8192
strsize = str(flashsize_kb / 1024) + 'M' if (flashsize_kb >= 1024) else str(flashsize_kb) + 'K'
strspiffs = str(spiffs_kb / 1024) + 'M' if (spiffs_kb >= 1024) else str(spiffs_kb) + 'K'