01 Overview
Pull a new image and switch boot slot.
- Use when: field bugfix and features.
- Skip when: the board cannot stay online yet.
Update and test
How firmware is updated after shipment. Partition tables start on board one.
Official path: examples/system/ota/native_ota_example
Pull a new image and switch boot slot.
1. Table with two OTA slots + selector.
2. Download, verify, set boot partition, reboot.
3. Define rollback: boot the old slot on failure.
4. HTTPS for public internet.
中文
升级与产测
出货后固件怎么安全更新。分区表从第一块板就要定。
官方路径: examples/system/ota/native_ota_example
从网络拉新固件并切换启动分区。
1. 分区表含两个 OTA 槽 + 选区。
2. 下载镜像、校验、设启动分区、重启。
3. 回滚策略要在产品里明确:失败起旧区。
4. HTTPS 升级才适合公网。