diff --git a/deploy.sh b/deploy.sh index 2d0f259..ab086f1 100755 --- a/deploy.sh +++ b/deploy.sh @@ -76,5 +76,5 @@ else fi && esptool.py --chip esp32-c3 elf2image ../target/riscv32imc-esp-espidf/$MODE/sphinx-key && -esptool.py --chip esp32c3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x80000 ../target/riscv32imc-esp-espidf/$MODE/sphinx-key.bin && +esptool.py --chip esp32c3 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 4MB 0x90000 ../target/riscv32imc-esp-espidf/$MODE/sphinx-key.bin && cargo espflash monitor --port $PORT diff --git a/factory/table.csv b/factory/table.csv index b207bd0..b88bbcb 100644 --- a/factory/table.csv +++ b/factory/table.csv @@ -3,5 +3,8 @@ nvs, data, nvs, 0x9000, 0x4000, otadata, data, ota, 0xd000, 0x2000, phy_init, data, phy, 0xf000, 0x1000, -factory, app, factory, 0x10000, 448K, -ota_0, app, ota_0, 0x80000, 3584K, +factory, app, factory, 0x10000, 0x80000, +ota_0, app, ota_0, 0x90000, 0x370000, +# Total flash size is 0x400000 +# Partitions of type app have to be placed at offsets aligned to 0x10000 (64 K). +# See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html