feat(ota): Checked the support of OTA for esp32c5

Checked the support of OTA features for esp32c5, tested
examples and added the support in README.md file. Even
added the support in systems .build-test-rules.yml
This commit is contained in:
hrushikesh.bhosale 2024-08-07 13:59:55 +05:30
parent 4b77ecdb45
commit ed4166a64c
7 changed files with 26 additions and 21 deletions

View File

@ -141,9 +141,9 @@ examples/system/light_sleep:
examples/system/ota/advanced_https_ota:
disable:
- if: IDF_TARGET in ["esp32h2", "esp32p4", "esp32c5", "esp32c61"]
- if: IDF_TARGET in ["esp32h2", "esp32c61"]
temporary: true
reason: target esp32h2, esp32c5 esp32c61 is not supported yet, esp32p4 is not supported with bluedroid/nimble case
reason: target esp32h2 esp32c61 is not supported yet
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
@ -161,9 +161,9 @@ examples/system/ota/advanced_https_ota:
examples/system/ota/native_ota_example:
disable:
- if: IDF_TARGET in ["esp32h2", "esp32c5", "esp32c61"]
- if: IDF_TARGET in ["esp32h2", "esp32c61"]
temporary: true
reason: target esp32h2, esp32c5, esp32c61 is not supported yet
reason: target esp32h2, esp32c61 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
reason: Only esp32 has ethernet runners
@ -178,15 +178,19 @@ examples/system/ota/native_ota_example:
examples/system/ota/otatool:
disable:
- if: IDF_TARGET in ["esp32h2", "esp32c5"]
- if: IDF_TARGET in ["esp32h2", "esp32c61"]
temporary: true
reason: target esp32h2 is not supported yet
reason: target esp32h2, esp32c61 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c5"]
reason: incomplete esptool support for esp32c5 # IDF-10915
examples/system/ota/pre_encrypted_ota:
disable:
- if: IDF_TARGET in ["esp32h2", "esp32c5", "esp32c61"]
- if: IDF_TARGET in ["esp32h2", "esp32c61"]
temporary: true
reason: target esp32h2, esp32c5, esp32c61 is not supported yet
reason: target esp32h2, esp32c61 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
temporary: true
@ -202,9 +206,9 @@ examples/system/ota/pre_encrypted_ota:
examples/system/ota/simple_ota_example:
disable:
- if: IDF_TARGET in ["esp32h2", "esp32p4", "esp32c5", "esp32c61"]
- if: IDF_TARGET in ["esp32h2", "esp32c61"]
temporary: true
reason: target esp32h2, esp32p4, esp32c5 esp32c61 is not supported yet
reason: target esp32h2, esp32c61 is not supported yet
- if: CONFIG_NAME == "spiram" and SOC_SPIRAM_SUPPORTED != 1
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Advanced HTTPS OTA example

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Native OTA example

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-C61 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | --------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# OTA Tool Example

View File

@ -30,6 +30,7 @@ def _real_test_func(dut: Dut) -> None:
@pytest.mark.esp32s2
@pytest.mark.esp32c3
@pytest.mark.esp32s3
# @pytest.mark.esp32c5 # IDF-10915
@pytest.mark.esp32c6
@pytest.mark.esp32p4
@pytest.mark.generic

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Encrypted Binary OTA

View File

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
# Simple OTA example
@ -9,4 +9,4 @@ This example is based on `esp_https_ota` component's APIs.
Refer README.md in the parent directory for setup details.
Example also supports binding to specific interface (either "Ethernet" or "WiFi Station"), which will allow firmware upgrade to happen through specific interface (in case multiple networking interfaces are enabled). Please see more on this through example configuration in `idf.py menuconfig -> Example Configuration -> Support firmware upgrade bind specificied interface->Choose OTA data bind interface`.
Example also supports binding to specific interface (either "Ethernet" or "WiFi Station"), which will allow firmware upgrade to happen through specific interface (in case multiple networking interfaces are enabled). Please see more on this through example configuration in `idf.py menuconfig -> Example Configuration -> Support firmware upgrade bind specified interface->Choose OTA data bind interface`.