factory: update partition table

This commit is contained in:
irriden
2023-07-10 20:13:37 +00:00
parent ec10d1aaf8
commit f35b539d90
2 changed files with 6 additions and 3 deletions

View File

@@ -76,5 +76,5 @@ else
fi && fi &&
esptool.py --chip esp32-c3 elf2image ../target/riscv32imc-esp-espidf/$MODE/sphinx-key && 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 cargo espflash monitor --port $PORT

View File

@@ -3,5 +3,8 @@
nvs, data, nvs, 0x9000, 0x4000, nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000, otadata, data, ota, 0xd000, 0x2000,
phy_init, data, phy, 0xf000, 0x1000, phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 448K, factory, app, factory, 0x10000, 0x80000,
ota_0, app, ota_0, 0x80000, 3584K, 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
1 # ESP-IDF Partition Table
3 nvs, data, nvs, 0x9000, 0x4000,
4 otadata, data, ota, 0xd000, 0x2000,
5 phy_init, data, phy, 0xf000, 0x1000,
6 factory, app, factory, 0x10000, 448K, factory, app, factory, 0x10000, 0x80000,
7 ota_0, app, ota_0, 0x80000, 3584K, ota_0, app, ota_0, 0x90000, 0x370000,
8 # Total flash size is 0x400000
9 # Partitions of type app have to be placed at offsets aligned to 0x10000 (64 K).
10 # See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html