mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
optimized esp32 partition table for ota
This commit is contained in:
6
esp32_partition_app1984k_spiffs64k.csv
Normal file
6
esp32_partition_app1984k_spiffs64k.csv
Normal file
@@ -0,0 +1,6 @@
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
nvs, data, nvs, 0x9000, 0x5000,
|
||||
otadata, data, ota, 0xe000, 0x2000,
|
||||
app0, app, ota_0, 0x10000, 0x1F0000,
|
||||
app1, app, ota_1, 0x200000, 0x1F0000,
|
||||
spiffs, data, spiffs, 0x3F0000,0x10000,
|
||||
|
@@ -1,10 +1,10 @@
|
||||
[env]
|
||||
; upload_port = COM3
|
||||
upload_port = COM3
|
||||
|
||||
[common]
|
||||
; debug_flags = -DENABLE_CORS -DEMSESP_DEBUG -DEMSESP_TEST
|
||||
debug_flags = -DEMSESP_DEBUG -DEMSESP_TEST
|
||||
; debug_flags = -DEMSESP_TEST
|
||||
; debug_flags = -DENABLE_CORS -DEMSESP_TEST
|
||||
; debug_flags = -DEMSESP_DEBUG -DEMSESP_TEST
|
||||
debug_flags = -DEMSESP_TEST
|
||||
|
||||
upload_protocol = espota
|
||||
upload_flags =
|
||||
@@ -17,5 +17,5 @@ monitor_filters = esp32_exception_decoder
|
||||
debug_tool = esp-prog
|
||||
debug_init_break = tbreak setup
|
||||
extra_scripts =
|
||||
; pre:scripts/build_interface.py
|
||||
scripts/rename_fw.py
|
||||
; pre:scripts/build_interface.py
|
||||
; scripts/rename_fw.py
|
||||
|
||||
@@ -67,7 +67,7 @@ extra_scripts =
|
||||
scripts/rename_fw.py
|
||||
board = esp32dev
|
||||
platform = espressif32
|
||||
board_build.partitions = min_spiffs.csv
|
||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv
|
||||
build_flags = ${common.build_flags} ${common.esp32_build_flags}
|
||||
build_unflags = ${common.build_unflags} ${common.esp32_build_unflags}
|
||||
|
||||
@@ -82,6 +82,6 @@ platform = espressif32
|
||||
; ; toolchain-xtensa32 @ 5.100200.201223
|
||||
; toolchain-xtensa32 @ 2.80400.2020 ; c70ec8a-toolchain-xtensa32-linux_x86_64-2.80400.2020.tar.gz
|
||||
; platform = https://github.com/platformio/platform-espressif32.git
|
||||
board_build.partitions = min_spiffs.csv ; https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/
|
||||
board_build.partitions = esp32_partition_app1984k_spiffs64k.csv ; https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/
|
||||
build_flags = ${common.build_flags} ${common.esp32_build_flags} ${common.debug_flags}
|
||||
build_unflags = ${common.build_unflags} ${common.esp32_build_unflags}
|
||||
|
||||
Reference in New Issue
Block a user