Skip to content

Commit 37fa873

Browse files
[ESP32]: Removed esp32-m5-with-rpc from the CI. (#36872)
* [ESP32]: Removed esp32-m5-with-rpc from the CI. * Add esp32 with rpc and ipv6only variation to CI * Add default sdkconfig.
1 parent 1c92162 commit 37fa873

File tree

7 files changed

+101
-32
lines changed

7 files changed

+101
-32
lines changed

.github/workflows/examples-esp32.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
"./scripts/build/build_examples.py \
8484
--enable-flashbundle \
8585
--target esp32-m5stack-all-clusters-minimal \
86-
--target esp32-m5stack-all-clusters-rpc-ipv6only \
8786
--pregen-dir ./zzz_pregenerated \
8887
build \
8988
--copy-artifacts-to out/artifacts \
@@ -95,6 +94,15 @@ jobs:
9594
mv scripts/tools/zap/generate.py.renamed scripts/tools/zap/generate.py
9695
- name: Build example All Clusters App(Target:ESP32C3)
9796
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig.defaults.esp32c3 esp32c3
97+
- name: Build example All Clusters App(Target:ESP32)
98+
run: |
99+
./scripts/run_in_build_env.sh \
100+
"./scripts/build/build_examples.py \
101+
--enable-flashbundle \
102+
--target esp32-devkitc-all-clusters-rpc-ipv6only \
103+
build \
104+
--copy-artifacts-to out/artifacts \
105+
"
98106
- name: Copy aside build products
99107
run: |
100108
mkdir -p example_binaries/esp32-build

.vscode/tasks.json

-2
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,6 @@
579579
"esp32-devkitc-temperature-measurement",
580580
"esp32-m5stack-all-clusters",
581581
"esp32-m5stack-all-clusters-ipv6only",
582-
"esp32-m5stack-all-clusters-rpc",
583-
"esp32-m5stack-all-clusters-rpc-ipv6only",
584582
"infineon-psoc6-all-clusters",
585583
"infineon-psoc6-lock",
586584
"infineon-psoc6-light",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
#
2+
# Copyright (c) 2024 Project CHIP Authors
3+
# Copyright (c) 2024 Nest Labs, Inc.
4+
# All rights reserved.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
# Description:
19+
# CI uses this to select the ESP32.
20+
#
21+
CONFIG_IDF_TARGET="esp32"
22+
CONFIG_IDF_TARGET_ESP32=y
23+
24+
# Default to 921600 baud when flashing and monitoring device
25+
CONFIG_ESPTOOLPY_BAUD_921600B=y
26+
CONFIG_ESPTOOLPY_BAUD=921600
27+
CONFIG_ESPTOOLPY_COMPRESSED=y
28+
CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y
29+
CONFIG_ESPTOOLPY_MONITOR_BAUD=115200
30+
31+
#enable BT
32+
CONFIG_BT_ENABLED=y
33+
CONFIG_BT_NIMBLE_ENABLED=y
34+
35+
#enable lwip ipv6 autoconfig
36+
CONFIG_LWIP_IPV6_AUTOCONFIG=y
37+
38+
# Use a custom partition table
39+
CONFIG_PARTITION_TABLE_CUSTOM=y
40+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
41+
42+
# Vendor and product id
43+
CONFIG_DEVICE_VENDOR_ID=0xFFF1
44+
CONFIG_DEVICE_PRODUCT_ID=0x8001
45+
46+
# Main task needs a bit more stack than the default
47+
# default is 3584, bump this up to 5k.
48+
CONFIG_ESP_MAIN_TASK_STACK_SIZE=5120
49+
50+
# PW RPC Debug channel
51+
CONFIG_EXAMPLE_UART_PORT_NUM=0
52+
CONFIG_EXAMPLE_UART_BAUD_RATE=115200
53+
CONFIG_EXAMPLE_UART_RXD=3
54+
CONFIG_EXAMPLE_UART_TXD=1
55+
CONFIG_ENABLE_PW_RPC=y
56+
57+
# Disable shell
58+
CONFIG_ENABLE_CHIP_SHELL=n
59+
60+
# Serial Flasher config
61+
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
62+
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
63+
64+
65+
#disable Bluetooth modem sleep
66+
#enable it may cause GPIO ISR triggers continuously
67+
CONFIG_BTDM_CTRL_MODEM_SLEEP=n
68+
CONFIG_BTDM_CTRL_MODEM_SLEEP_MODE_ORIG=n
69+
CONFIG_BTDM_CTRL_LPCLK_SEL_MAIN_XTAL=n
70+
71+
# Enable HKDF in mbedtls
72+
CONFIG_MBEDTLS_HKDF_C=y
73+
74+
# Build chip tests
75+
CONFIG_BUILD_CHIP_TESTS=y
76+
77+
# Move functions from IRAM to flash
78+
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
79+
80+
CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y
81+
82+
# Memory Optimizations
83+
CONFIG_NIMBLE_MAX_CONNECTIONS=1
84+
CONFIG_BTDM_CTRL_BLE_MAX_CONN=1
85+
CONFIG_BT_NIMBLE_ROLE_CENTRAL=n
86+
CONFIG_BT_NIMBLE_ROLE_OBSERVER=n
87+
88+
# Reduce the event logging buffer to reduce the DRAM overflow
89+
# TODO: [ESP32] Fix the DRAM overflow in esp32 apps #34717
90+
CONFIG_EVENT_LOGGING_CRIT_BUFFER_SIZE=512
91+
CONFIG_EVENT_LOGGING_INFO_BUFFER_SIZE=512
92+
CONFIG_EVENT_LOGGING_DEBUG_BUFFER_SIZE=512

integrations/cloudbuild/smoke-test.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ steps:
3434
./scripts/build/build_examples.py --enable-flashbundle --target
3535
esp32-devkitc-light-rpc --target
3636
esp32-m5stack-all-clusters-ipv6only --target
37-
esp32-m5stack-all-clusters-rpc-ipv6only --target
3837
esp32-m5stack-light --target
3938
esp32-m5stack-light-ipv6only --target
4039
esp32-m5stack-ota-requestor build --create-archives

scripts/build/BUILD.gn

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pw_python_package("build_examples") {
2626
"testdata/dry_run_android-arm64-chip-tool.txt",
2727
"testdata/dry_run_efr32-brd4187c-light-rpc-no-version.txt",
2828
"testdata/dry_run_esp32-devkitc-light-rpc.txt",
29-
"testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt",
3029
"testdata/dry_run_linux-arm64-chip-tool-ipv6only-clang.txt",
3130
"testdata/dry_run_linux-arm64-ota-requestor-nodeps-ipv6only.txt",
3231
"testdata/dry_run_linux-x64-all-clusters-coverage.txt",

scripts/build/test.py

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def test_general_dry_runs(self):
108108
# build options do not change too much
109109
TARGETS = [
110110
'esp32-devkitc-light-rpc',
111-
'esp32-m5stack-all-clusters-minimal-rpc-ipv6only',
112111
'android-arm64-chip-tool',
113112
'nrf-nrf52840dk-pump',
114113
'efr32-brd4187c-light-rpc-no-version',

scripts/build/testdata/dry_run_esp32-m5stack-all-clusters-minimal-rpc-ipv6only.txt

-26
This file was deleted.

0 commit comments

Comments
 (0)