Skip to content

Commit 4da5d46

Browse files
reaper7me-no-dev
authored andcommitted
Additional partition scheme min_spiffs (#1302)
with minimal SPIFFS partition size and OTA support for bigger apps
1 parent febcda0 commit 4da5d46

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Diff for: Kconfig.projbuild

+3
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,16 @@ config ARDUHAL_PARTITION_SCHEME_MINIMAL
9090
bool "Minimal (for 2MB FLASH)"
9191
config ARDUHAL_PARTITION_SCHEME_NO_OTA
9292
bool "No OTA (for large apps)"
93+
config ARDUHAL_PARTITION_SCHEME_MIN_SPIFFS
94+
bool "Minimal SPIFFS (for large apps with OTA)"
9395
endchoice
9496

9597
config ARDUHAL_PARTITION_SCHEME
9698
string
9799
default "default" if ARDUHAL_PARTITION_SCHEME_DEFAULT
98100
default "minimal" if ARDUHAL_PARTITION_SCHEME_MINIMAL
99101
default "no_ota" if ARDUHAL_PARTITION_SCHEME_NO_OTA
102+
default "min_spiffs" if ARDUHAL_PARTITION_SCHEME_MIN_SPIFFS
100103

101104

102105
config AUTOCONNECT_WIFI

Diff for: boards.txt

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ esp32.menu.PartitionScheme.minimal=Minimal (2MB FLASH)
3535
esp32.menu.PartitionScheme.minimal.build.partitions=minimal
3636
esp32.menu.PartitionScheme.no_ota=No OTA (Large APP)
3737
esp32.menu.PartitionScheme.no_ota.build.partitions=no_ota
38+
esp32.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
39+
esp32.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
3840

3941
esp32.menu.FlashMode.qio=QIO
4042
esp32.menu.FlashMode.qio.build.flash_mode=dio

Diff for: tools/partitions/min_spiffs.csv

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Name, Type, SubType, Offset, Size, Flags
2+
nvs, data, nvs, 0x9000, 0x5000,
3+
otadata, data, ota, 0xe000, 0x2000,
4+
app0, app, ota_0, 0x10000, 0x1E0000,
5+
app1, app, ota_1, 0x1F0000,0x1E0000,
6+
eeprom, data, 0x99, 0x3F0000,0x1000,
7+
spiffs, data, spiffs, 0x3F1000,0xF000,

0 commit comments

Comments
 (0)