From adcd4f996bd93d131ea2aae8108b57f536f20fcb Mon Sep 17 00:00:00 2001 From: Sascha Date: Sun, 21 Nov 2021 22:32:20 +0100 Subject: [PATCH] Add example for 8MB flash devices --- custom_8mb_ota.csv | 10 ++++++++++ platformio.ini | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 custom_8mb_ota.csv diff --git a/custom_8mb_ota.csv b/custom_8mb_ota.csv new file mode 100644 index 0000000..4941397 --- /dev/null +++ b/custom_8mb_ota.csv @@ -0,0 +1,10 @@ +# 256 kB (instead of 24 kB) for nvs, the rest is used by application +# Infos: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html +# TOTAL AVAILABLE: 0x800000 +# Name, Type, SubType, Offset, Size, Flags +otadata, data, ota, 0x9000 , 0x2000, +phy_init, data, phy, 0xb000 , 0x1000 +app0, app, ota_0, 0x10000, 0x3B0000, +app1, app, ota_1, , 0x3B0000, +nvs, data, nvs, , 0x40000, +storage, data, spiffs, , 0x50000, \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index 354ece1..e881c9c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -147,6 +147,19 @@ build_flags = -DHAL=6 board_upload.maximum_size = 16777216 board_upload.flash_size = 16MB +; custom board based on 8 MB flash devkitc +[env:esp32-wrover-devkitc-v4-8mb] +;https://docs.platformio.org/en/latest/boards/espressif32/esp-wrover-kit.html +board = esp-wrover-kit +board_build.partitions = custom_8mb_ota.csv +build_flags = -DHAL=99 + -DBOARD_HAS_PSRAM + -mfix-esp32-psram-cache-issue + -DLOG_BUFFER_SIZE=10240 + -DBOARD_HAS_16MB_FLASH_AND_OTA_SUPPORT ; 8MB is fine +board_upload.maximum_size = 8388608 +board_upload.flash_size = 8MB + ;;; Change upload/monitor-port of your board regarding your operating-system and develboard! ;MAC: /dev/cu.SLAB_USBtoUART / /dev/cu.wchusbserial1420 / /dev/cu.wchusbserial1410 ;WINDOWS: COM3