From ca9444bbd94246c57471a63d17942bcec6fc737e Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Mon, 13 Dec 2021 22:43:53 +0100 Subject: [PATCH] add castom partition for esp32 --- esp32_partitions.csv | 6 ++++++ partitions_custom.csv | 6 ------ platformio.ini | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 esp32_partitions.csv delete mode 100644 partitions_custom.csv diff --git a/esp32_partitions.csv b/esp32_partitions.csv new file mode 100644 index 00000000..5d1cef19 --- /dev/null +++ b/esp32_partitions.csv @@ -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, \ No newline at end of file diff --git a/partitions_custom.csv b/partitions_custom.csv deleted file mode 100644 index 86202b53..00000000 --- a/partitions_custom.csv +++ /dev/null @@ -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 \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 0fbb2bf6..a3039166 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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"