Please note, Maximum size of New OTA image binary depends upon -
- Total flash size available
- OTA partition size in partition table As per current limits, upto 1MB binary size is supported which is configurable using custom partition table CSV. Please refer partition tables for more info.
- There are basic three control path APIs for OTA are provided
- C and python demo apps make use of them to do OTA update
- ota_begin()
- Sets available OTA partition in flash for OTA write operation and erase it
- ota_write()
- Write chunk of OTA image data on OTA partition in flash
- ota_end()
- Validate written OTA image, set OTA partition for next boot and reboot ESP after 5 sec
- ota_begin()
Build and flash ESP-Hosted application using idf.py build flash monitor
.
- Please stop ongoing BT/BLE operations before starting OTA process.
- OTA operation should not get interrupted by any other control path command.
- OTA update using HTTP URL is only supported in python. In case HTTP based OTA update is desired, user can do the same using third party HTTP client library.
- The OTA update using C currently assumes the complete binary is downloaded locally.
User can skip step 1, if station is connected to AP and IP is assigned to ethsta0
interface.
-
Perform station connect using wifi station mode operations -> Connect to external access point.
-
For further details follow this Link.
For Further details follow this Link -> OTA
.