Merge branch 'feature/ota_buffer_cap_config' into 'master'

feat(esp_https_ota): Add config to configure memory capability for OTA buffer

Closes IDF-8836

See merge request espressif/esp-idf!27927
This commit is contained in:
Aditya Patwardhan
2024-03-29 12:51:25 +08:00
7 changed files with 38 additions and 3 deletions
+15
View File
@@ -197,6 +197,21 @@ The verification of signed OTA updates can be performed even without enabling ha
For more information refer to :ref:`signed-app-verify`
Tuning OTA Performance
----------------------
- Erasing the update partition at once instead of sequential erasing (default mechanism) while write operation might help in reducing the overall time taken for firmware upgrade. To enable this, set :cpp:member:`esp_https_ota_config_t::bulk_flash_erase` to true in :cpp:type:`esp_https_ota_config_t` structure. If the partition to be erased is too large, task watchdog could be triggered. It is advised to increase the watchdog timeout in such cases.
.. code-block:: c
esp_https_ota_config_t ota_config = {
.bulk_flash_erase = true,
}
- Tuning the :cpp:member:`esp_https_ota_config_t::http_config::buffer_size` can also help in improving the OTA performance.
- :cpp:type:`esp_https_ota_config_t` has a member :cpp:member:`esp_https_ota_config_t::buffer_caps` which can be used to specify the memory type to use when allocating memory to the OTA buffer. Configuring this value to MALLOC_CAP_INTERNAL might help in improving the OTA performance when SPIRAM is enabled.
- For optimizing network performance, please refer to **Improving Network Speed** section in the :doc:`/api-guides/performance/speed` for more details.
OTA Tool ``otatool.py``
-----------------------