add esp_hal_ota crate

and do the manual setup steps for it
This commit is contained in:
2026-01-18 17:38:58 +00:00
parent c8dd5e0414
commit d56701ad8e
4 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
[target.riscv32imc-unknown-none-elf]
runner = "espflash flash --monitor --chip esp32c3"
runner = "espflash flash --erase-parts otadata --partition-table ./partitions.csv --monitor --chip esp32c3"
[env]
ESP_LOG="info"
Generated
+12
View File
@@ -308,6 +308,7 @@ dependencies = [
"esp-backtrace",
"esp-bootloader-esp-idf",
"esp-hal",
"esp-hal-ota",
"esp-println",
"esp-radio",
"esp-rtos",
@@ -710,6 +711,17 @@ dependencies = [
"xtensa-lx-rt",
]
[[package]]
name = "esp-hal-ota"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0f57c560af3fe8037ea9aadc094089703a5b6fdd808b7c68650125615d71a8e"
dependencies = [
"embedded-storage",
"esp32c3",
"log",
]
[[package]]
name = "esp-hal-procmacros"
version = "0.21.0"
+3 -1
View File
@@ -71,7 +71,9 @@ embassy-net = { version = "0.7.1", features = [
dns-protocol = { version = "0.1.2", default-features = false, features = [
# no "std" feature
] }
esp-hal-ota = { version = "0.4.5", features = [
"esp32c3", "log"
] }
[profile.dev]
+7
View File
@@ -0,0 +1,7 @@
# https://github.com/filipton/esp-hal-ota/blob/master/partitions.csv.template
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xd000, 0x2000,
phy_init, data, phy, 0xf000, 0x1000,
ota_0, app, ota_0, 0x10000, 0x100000,
ota_1, app, ota_1, 0x110000, 0x100000,
1 # https://github.com/filipton/esp-hal-ota/blob/master/partitions.csv.template
2 # Name, Type, SubType, Offset, Size, Flags
3 nvs, data, nvs, 0x9000, 0x4000,
4 otadata, data, ota, 0xd000, 0x2000,
5 phy_init, data, phy, 0xf000, 0x1000,
6 ota_0, app, ota_0, 0x10000, 0x100000,
7 ota_1, app, ota_1, 0x110000, 0x100000,