From 8a2b9b32d31b5eeef03badf7b963ec78b9f40d6f Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:08:06 -0300 Subject: [PATCH 1/6] Prepare Testing with Matter and C5 --- configs/defconfig.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/defconfig.common b/configs/defconfig.common index 48baf508..d6de29eb 100644 --- a/configs/defconfig.common +++ b/configs/defconfig.common @@ -125,7 +125,7 @@ CONFIG_I2S_ISR_IRAM_SAFE=y # Matter Settings # # Disable Matter BLE -CONFIG_ENABLE_CHIPOBLE=n +# CONFIG_ENABLE_CHIPOBLE=n CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING=n # ESP Insights CONFIG_ENABLE_ESP_INSIGHTS_TRACE=n From d362c2c2be2d99bd31fd58e4b66230f25a5047ee Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:10:33 -0300 Subject: [PATCH 2/6] enables full mDNS for Matter --- configs/defconfig.common | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/defconfig.common b/configs/defconfig.common index d6de29eb..6e0f0c93 100644 --- a/configs/defconfig.common +++ b/configs/defconfig.common @@ -131,6 +131,8 @@ CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING=n CONFIG_ENABLE_ESP_INSIGHTS_TRACE=n # Use compact attribute storage mode CONFIG_ESP_MATTER_NVS_USE_COMPACT_ATTR_STORAGE=y +# Do not use minimal mDNS within Matter Core +CONFIG_USE_MINIMAL_MDNS=n #TinyUSB Config CONFIG_TINYUSB_CDC_MAX_PORTS=2 From 1f16484d565d9c113ceb45d1ca0aa9f826c718b7 Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:11:55 -0300 Subject: [PATCH 3/6] Enables Matter over Thread + WiFi using CHIPoBLE --- configs/defconfig.esp32c5 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configs/defconfig.esp32c5 b/configs/defconfig.esp32c5 index b18dd4b0..4eaa5d56 100644 --- a/configs/defconfig.esp32c5 +++ b/configs/defconfig.esp32c5 @@ -50,9 +50,12 @@ CONFIG_OPENTHREAD_NETWORK_MASTERKEY="00112233445566778899aabbccddeeff" CONFIG_OPENTHREAD_NETWORK_PSKC="104810e2315100afd6bc9215a6bfac53" # end of OpenThread -# Matter shall use only WiFi -CONFIG_ENABLE_MATTER_OVER_THREAD=n - +# Matter settings: WiFi and OpenThread + CHIPoBLE +CONFIG_ENABLE_CHIPOBLE=y +CONFIG_ENABLE_MATTER_OVER_THREAD=y +# Set endpoint id for Thread and Wi-Fi, depending on the secondary network interface endpoint id. +CONFIG_THREAD_NETWORK_ENDPOINT_ID=2 +CONFIG_WIFI_NETWORK_ENDPOINT_ID=0 # # Zigbee # From cca21e6fdf575c1ac000f50f6920b9161ddc66bd Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:13:19 -0300 Subject: [PATCH 4/6] Only Builds Matter for the ESP32-C5, no other SoC --- main/idf_component.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/idf_component.yml b/main/idf_component.yml index a85eca54..2d4aa68b 100644 --- a/main/idf_component.yml +++ b/main/idf_component.yml @@ -20,4 +20,4 @@ dependencies: version: "1.4.1" require: public rules: - - if: "target not in [esp32c2, esp32h2, esp32p4]" + - if: "target not in [esp32c2, esp32h2, esp32, esp32c3, esp32s2, esp32s3, esp32c6, esp32p4]" From d360cadb1e654a23cdec662f1c069a07795a16f8 Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:16:06 -0300 Subject: [PATCH 5/6] does it only build for the C5 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 50e376c2..40c484ce 100755 --- a/build.sh +++ b/build.sh @@ -20,7 +20,7 @@ export IDF_COMPONENT_OVERWRITE_MANAGED_COMPONENTS=1 CCACHE_ENABLE=1 -TARGET="all" +TARGET="esp32c5" BUILD_TYPE="all" BUILD_DEBUG="default" SKIP_ENV=0 From e04e864f0e6fcb71debd013f51482f81530e89a6 Mon Sep 17 00:00:00 2001 From: Sugar Glider Date: Sat, 28 Jun 2025 16:17:43 -0300 Subject: [PATCH 6/6] limits it to build only for the ESP32-C5 --- .github/workflows/push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index c76e45a6..c8a88b06 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4, esp32c5] + target: [esp32c5] fail-fast: false steps: - name: Checkout repository