-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify flash size settings, fix old comment regarding build_flags
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,25 +38,33 @@ platform_latest = [email protected] | |
|
||
# ------------------------------------------------------------------------------ | ||
# FLASH SIZE: | ||
# configurations for 512k/1m/... ESP's are different because we use Linker Scripts to adjust flash split | ||
# board_512k, ldscript_512k ( 512 KB) = 487 KB sketch, 4 KB eeprom, 16 KB reserved | ||
# board_512k, ldscript_1m0m (1024 KB) = 999 KB sketch, 4 KB eeprom, 16 KB reserved | ||
# board_512k, ldscript_2m1m (2048 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved | ||
# board_512k, ldscript_4m1m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 992 KB spiffs, 16 KB reserved, 2048 KB empty/ota? | ||
# board_512k, ldscript_4m3m (4096 KB) = 1019 KB sketch, 16 KB eeprom, 3040 KB spiffs, 16 KB reserved | ||
# board and ldscript must specify real flash size of the device. | ||
# NOTES: | ||
# fs space is not used right now. | ||
# SPIFFS_SUPPORT=1, FS_SUPPORT=1 will have no effect. | ||
# to avoid issues with OTA process, ensure that board & ldscript match (or less than) real flash size of the device. | ||
# ------------------------------------------------------------------------------ | ||
|
||
# 487 KB sketch, 4 KB eeprom, 16 KB reserved, no space for ota | ||
board_512k = esp01 | ||
ldscript_512k = eagle.flash.512k0m1s.ld | ||
|
||
# 999 KB sketch, 4 KB eeprom, 16 KB reserved | ||
board_1m = esp01_1m | ||
ldscript_1m = eagle.flash.1m0m1s.ld | ||
|
||
# 1019 KB sketch, 16 KB eeprom, 992 KB fs, 16 KB reserved | ||
board_2m = esp_wroom_02 | ||
ldscript_2m = eagle.flash.2m1m4s.ld | ||
|
||
# 1019 KB sketch, 16 KB eeprom, 992 KB fs, 16 KB reserved, 2048 KB empty/ota | ||
board_4m = esp12e | ||
ldscript_4m = eagle.flash.4m1m4s.ld | ||
|
||
# OPTIONAL: | ||
# 1019 KB sketch, 16 KB eeprom, 3040 KB fs, 16 KB reserved | ||
# ldscript_4m = eagle.flash.4m3m4s.ld | ||
|
||
# ------------------------------------------------------------------------------ | ||
# GLOBAL BUILD FLAGS: | ||
# | ||
|