add castom partition for esp32

This commit is contained in:
Dmitry Borisenko
2021-12-13 22:43:53 +01:00
parent e9f36e7d20
commit ca9444bbd9
3 changed files with 8 additions and 7 deletions

6
esp32_partitions.csv Normal file
View 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, 0x140000,
app1, app, ota_1, 0x150000,0x140000,
spiffs, data, spiffs, 0x290000,0x170000,
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 0x140000
5 app1 app ota_1 0x150000 0x140000
6 spiffs data spiffs 0x290000 0x170000

View File

@@ -1,6 +0,0 @@
# Name, Type, SubType, Offset, Size, Flags
ota_0, app, ota_0, 0x10000, 0x1A0000
ota_1, app, ota_1, , 0x1A0000
otadata, data, ota, 0x350000, 0x2000
nvs, data, nvs, , 0x6000
data, data, spiffs, , 0xA8000
1 # Name, Type, SubType, Offset, Size, Flags
2 ota_0, app, ota_0, 0x10000, 0x1A0000
3 ota_1, app, ota_1, , 0x1A0000
4 otadata, data, ota, 0x350000, 0x2000
5 nvs, data, nvs, , 0x6000
6 data, data, spiffs, , 0xA8000

View File

@@ -92,7 +92,7 @@ board_build.filesystem = littlefs
build_flags = -Desp32_4mb="esp32_4mb"
framework = arduino
board = esp32dev
platform = espressif32 @3.3.0
platform = espressif32 @3.4.0
lib_deps =
${common_env_data.lib_deps_external}
${common_env_data.lib_deps_internal}
@@ -111,6 +111,7 @@ lib_deps =
monitor_filters = esp32_exception_decoder
upload_speed = 921600
monitor_speed = 115200
board_build.partitions = esp32_partitions.csv
[env:esp32_mysensors_4mb]
build_flags = -Desp32_mysensors_4mb="esp32_mysensors_4mb"