Skip to content

Commit aa81b95

Browse files
committed
Added OTA partition 1.5MB per app. Fixed s3 wrong partition for spiffs
1 parent 4a1df4d commit aa81b95

5 files changed

Lines changed: 13 additions & 17 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# obname: onboard image (bootloader + partitions + firmware + littlefs merged)
1818
# for flashing a new chip via USB/serial
1919
# addr_bootloader: chip-dependent (ESP32: 0x1000, C3/S3: 0x0)
20-
# addr_fs: must match spiffs/littlefs offset in huge_app.csv
20+
# addr_fs: must match spiffs/littlefs offset in esp32_3MB.csv
2121
include:
2222
- env: esp32dev
2323
name: ESP32
@@ -39,7 +39,7 @@ jobs:
3939
name: ESP32-S3
4040
chip: ESP32-S3
4141
addr_bootloader: "0x0"
42-
addr_fs: "0x310000"
42+
addr_fs: "0x670000"
4343
fwname: SomfyController.ino.esp32s3.bin
4444
fsname: SomfyController.littlefs.esp32s3.bin
4545
obname: SomfyController.onboard.esp32s3.bin

esp32_3MB.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Name, Type, SubType, Offset, Size
2+
nvs, data, nvs, 0x9000, 0x5000
3+
otadata, data, ota, 0xE000, 0x2000
4+
app0, app, ota_0, 0x10000, 0x180000
5+
app1, app, ota_1, 0x190000, 0x180000
6+
spiffs, data, spiffs, 0x310000, 0x0F0000

huge_app.csv

Lines changed: 0 additions & 6 deletions
This file was deleted.

min_spiffs.csv

Lines changed: 0 additions & 7 deletions
This file was deleted.

platformio.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ lib_deps =
2323
extra_scripts =
2424
pre:minify.py
2525
post:archive_elf.py
26-
board_build.partitions = huge_app.csv
26+
2727
board_build.filesystem = littlefs
2828
build_flags =
29-
-DCORE_DEBUG_LEVEL=3
29+
-DCORE_DEBUG_LEVEL=1
3030
-DCONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=1
3131
-DCONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=1
3232
-DCONFIG_ESP_COREDUMP_CHECKSUM_CRC32=1
@@ -40,13 +40,16 @@ monitor_filters =
4040

4141
[env:esp32dev]
4242
board = esp32dev
43+
board_build.partitions = esp32_3MB.csv
4344

4445
[env:esp32devdbg]
4546
board = esp32dev
4647
build_type = debug
48+
board_build.partitions = esp32_3MB.csv
4749

4850
[env:esp32c3]
4951
board = esp32-c3-devkitm-1
52+
board_build.partitions = esp32_3MB.csv
5053

5154
[env:esp32s3]
5255
board = esp32-s3-devkitc-1

0 commit comments

Comments
 (0)