Skip to content

Commit

Permalink
CO2 Gadget Beta v0.12.070-development
Browse files Browse the repository at this point in the history
chore: Update partition table offsets
  • Loading branch information
melkati committed May 16, 2024
1 parent 68071ee commit fce9184
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/release3_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,27 @@ jobs:
if: steps.check_version.outputs.VERSION != ''
id: create_betamanifest
run: |
# Note: if you change the partition table, make sure to update the offsets
# See: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html
# Name, Type, SubType, Offset, Size, Flags
# nvs, data, nvs, 0x9000, 0x5000, # nvs partition at at offset 20480 with size 36864 bytes (36KB)
# otadata, data, ota, 0xe000, 0x2000, # otadata partition at offset 57344 with size 8192 bytes (8KB)
# app0, app, ota_0, 0x10000, 0x1B0000, # app0 partition at offset 65536 with size 1769472 bytes (1.68MB)
# app1, app, ota_1, 0x1C0000, 0x1B0000, # app1 partition at offset 1835008 with size 1769472 bytes (1.68MB)
# spiffs, data, spiffs, 0x370000, 0x4B000, # spiffs partition at offset 3604480 with size 307200 bytes (476KB)
# Define offset values based on env.CHIP_FAMILY
if [[ "${{ env.CHIP_FAMILY }}" == "ESP32-S3" ]]; then
bootloader_offset=0
partitions_offset=32768
app0_offset=57344
firmware_offset=65536
spiffs_offset=13172736
spiffs_offset=3604480
else
# Default values for ESP32 or other environments
bootloader_offset=4096
partitions_offset=32768
app0_offset=57344
firmware_offset=65536
spiffs_offset=3997696
spiffs_offset=3604480
fi
# Create beta manifest
Expand Down

0 comments on commit fce9184

Please sign in to comment.