Skip to content

Commit

Permalink
Merge branch 'update_idf_to_v5_2_1' into 'main'
Browse files Browse the repository at this point in the history
update idf version to v5.2.1

See merge request app-frameworks/esp-matter!680
  • Loading branch information
chshu committed Apr 11, 2024
2 parents ab584db + 2ef30e7 commit aea4a24
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
# Github runner is running out of space when we are building for multiple architectures in single runner
BUILD_PLATFORMS: linux/amd64
DOCKERHUB_REPO: ${{ github.repository }}
REQUIRED_IDF_VERSION: v5.1.2
REQUIRED_IDF_VERSION: v5.2.1

jobs:
build:
Expand Down
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ variables:
- mkdir -p ${REPOS_PATH}
- *update_build_caches
variables:
IDF_VERSION: "v5.1.2"
IDF_VERSION: "v5.2.1"
REPOS_PATH: "$CI_PROJECT_DIR/repos"
IDF_CCACHE_ENABLE: 1

Expand All @@ -190,7 +190,7 @@ build_esp_matter_examples_pytest_C6_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "v5.1.2"
IDF_VERSION: "v5.2.1"
script:
- cd ${ESP_MATTER_PATH}
- pip install -r tools/ci/requirements-build.txt
Expand Down Expand Up @@ -222,7 +222,7 @@ build_esp_matter_examples_pytest_H2_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "v5.1.2"
IDF_VERSION: "v5.2.1"
script:
- *setup_ot_rcp
- *setup_ot_br
Expand All @@ -245,7 +245,7 @@ build_esp_matter_examples_non_pytest_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "v5.1.2"
IDF_VERSION: "v5.2.1"
script:
- *build_external_platform_example
- *build_esp32c6_thread_example
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ section in the ESP-Matter Programming Guide.
## Supported ESP-IDF and connectedhomeip versions

- This SDK currently works with commit [d38a6496c3](https://github.com/project-chip/connectedhomeip/tree/d38a6496c3) of connectedhomeip.
- For Matter projects development with this SDK, it is recommended to utilize ESP-IDF [v5.1.2](https://github.com/espressif/esp-idf/tree/v5.1.2).
- For Matter projects development with this SDK, it is recommended to utilize ESP-IDF [v5.2.1](https://github.com/espressif/esp-idf/tree/v5.2.1).


## Documentation
Expand Down
24 changes: 12 additions & 12 deletions docs/en/developing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Development on Windows is supported using Windows Subsystem for Linux (WSL). Ple
- Windows does not support exposing COM ports to WSL distros. Install usbipd-win on `Windows <https://github.com/dorssel/usbipd-win>`__
and `WSL <https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/WSL.md#usbipd>`__ (usbipd-win `WSL Support <https://github.com/dorssel/usbipd-win/wiki/WSL-support>`__).
- Here onwards process for setting esp-matter and building examples is same as other hosts.
- Please clone the repositories from inside the WSL environment and not inside a mounted directory.
- Please clone the repositories from inside the WSL environment and not inside a mounted directory.

For using CHIP tool on WSL, please check `Using CHIP-tool in WSL <https://github.com/espressif/esp-matter/blob/main/docs/en/using_chip_tool.rst>`__.

Expand All @@ -43,7 +43,7 @@ For using VSCode for development, please check `Developing in WSL <https://code.
.. toctree::
:hidden:
:maxdepth: 1

Using CHIP-tool in WSL <using_chip_tool>

2.1.2 Getting the Repositories
Expand All @@ -66,7 +66,7 @@ Cloning esp-idf:
::

git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout v5.1.2; git submodule update --init --recursive;
cd esp-idf; git checkout v5.2.1; git submodule update --init --recursive;
./install.sh
cd ..

Expand Down Expand Up @@ -248,7 +248,7 @@ Choose IDF target.
::

ERROR: This script was called from a virtual environment, can not create a virtual environment again

It can be fixed by running below command:
::

Expand Down Expand Up @@ -646,14 +646,14 @@ creating in the *app_main.cpp* of the example. Examples:
- on_off_light:

::

on_off_light::config_t light_config;
endpoint_t *endpoint = on_off_light::create(node, &light_config, ENDPOINT_FLAG_NONE);

- fan:

::

fan::config_t fan_config;
endpoint_t *endpoint = fan::create(node, &fan_config, ENDPOINT_FLAG_NONE);

Expand Down Expand Up @@ -691,7 +691,7 @@ creating in the *app_main.cpp* of the example. Examples:
2.4.2.2 Clusters
^^^^^^^^^^^^^^^^

Additional clusters can also be added to an endpoint. Examples:
Additional clusters can also be added to an endpoint. Examples:

- on_off:

Expand All @@ -710,7 +710,7 @@ Additional clusters can also be added to an endpoint. Examples:
- window_covering:

::

window_covering::config_t window_covering_config(static_cast<uint8_t>(chip::app::Clusters::WindowCovering::EndProductType::kTiltOnlyInteriorBlind));
cluster_t *cluster = window_covering::create(endpoint, &window_covering_config, CLUSTER_FLAG_SERVER);

Expand All @@ -733,7 +733,7 @@ Additional clusters can also be added to an endpoint. Examples:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Additional attributes and commands can also be added to a cluster.
Examples:
Examples:

- attribute: on_off:

Expand Down Expand Up @@ -793,19 +793,19 @@ Non-Standard endpoint can be created, without any clusters.
2.4.3.2 Clusters
^^^^^^^^^^^^^^^^

Non-Standard/Custom clusters can also be created:
Non-Standard/Custom clusters can also be created:

- Cluster create:

::

uint32_t custom_cluster_id = 0x131bfc00;
cluster_t *cluster = cluster::create(endpoint, custom_cluster_id, CLUSTER_FLAG_SERVER);

2.4.3.3 Attributes and Commands
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Non-Standard/Custom attributes can also be created on any cluster:
Non-Standard/Custom attributes can also be created on any cluster:

- Attribute create:

Expand Down
2 changes: 1 addition & 1 deletion docs/en/security.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
5. Security Considerations
==========================

{IDF_TARGET_RELEASE:default="v5.1.2"}
{IDF_TARGET_RELEASE:default="v5.2.1"}

5.1 Overview
------------
Expand Down
2 changes: 1 addition & 1 deletion examples/all_device_types_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ set(EXTRA_COMPONENT_DIRS

project(all_device_types_app)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
22 changes: 13 additions & 9 deletions examples/all_device_types_app/main/esp_matter_console_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,14 @@ static void initialize_console(void)
.source_clk = UART_SCLK_XTAL,
#endif
};
#if (CONFIG_ESP_CONSOLE_UART_NUM == 0)
uart_port_t uart_port = UART_NUM_0;
#elif (CONFIG_ESP_CONSOLE_UART_NUM == 1)
uart_port_t uart_port = UART_NUM_1;
#endif
/* Install UART driver for interrupt-driven reads and writes */
ESP_ERROR_CHECK( uart_driver_install(CONFIG_ESP_CONSOLE_UART_NUM,
256, 0, 0, NULL, 0) );
ESP_ERROR_CHECK( uart_param_config(CONFIG_ESP_CONSOLE_UART_NUM, &uart_config) );
ESP_ERROR_CHECK( uart_driver_install(uart_port, 256, 0, 0, NULL, 0) );
ESP_ERROR_CHECK( uart_param_config(uart_port, &uart_config) );

/* Tell VFS to use UART driver */
esp_vfs_dev_uart_use_driver(CONFIG_ESP_CONSOLE_UART_NUM);
Expand Down Expand Up @@ -369,7 +373,7 @@ int create(uint8_t device_type_index)
break;
}
}

if (!endpoint) {
ESP_LOGE(TAG, "Matter create endpoint failed");
return 1;
Expand All @@ -387,7 +391,7 @@ int create(uint8_t device_type_index)
xSemaphoreGive(semaphoreHandle);
}
}

return 0;
}

Expand All @@ -402,7 +406,7 @@ namespace console {
struct arg_str *device_type;
struct arg_end *end;
} create_device_args;

static int create(int argc, char **argv)
{
int nerrors = arg_parse(argc, argv, (void **) &create_device_args);
Expand Down Expand Up @@ -441,11 +445,11 @@ esp_err_t register_create_device_commands()
};

return esp_console_cmd_register(&create_cmd);

}

void init(void)
{
{
#if CONFIG_STORE_HISTORY
initialize_filesystem();
ESP_LOGI(TAG, "Command history enabled");
Expand Down Expand Up @@ -513,7 +517,7 @@ void init(void)
}

void deinit(void)
{
{
fflush(stdout);
fsync(fileno(stdout));
esp_console_deinit();
Expand Down
2 changes: 1 addition & 1 deletion examples/blemesh_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ set(EXTRA_COMPONENT_DIRS

project(blemesh_bridge)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-fpermissive" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-fpermissive;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/common/relinker/esp32c2/object.csv
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ libesp_wifi.a,esp_adapter.c.obj,esp-idf/esp_wifi/CMakeFiles/__idf_esp_wifi.dir/e
libfreertos.a,list.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-Kernel/list.c.obj
libfreertos.a,port.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-Kernel/portable/riscv/port.c.obj
libfreertos.a,port_common.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/port_common.c.obj
libfreertos.a,port_systick.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-Kernel/portable/port_systick.c.obj
libfreertos.a,port_systick.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/port_systick.c.obj
libfreertos.a,queue.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-Kernel/queue.c.obj
libfreertos.a,tasks.c.obj,esp-idf/freertos/CMakeFiles/__idf_freertos.dir/FreeRTOS-Kernel/tasks.c.obj
libhal.a,brownout_hal.c.obj,esp-idf/hal/CMakeFiles/__idf_hal.dir/brownout_hal.c.obj
Expand Down
2 changes: 1 addition & 1 deletion examples/controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set(EXTRA_COMPONENT_DIRS

project(controller)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)

# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
Expand Down
2 changes: 1 addition & 1 deletion examples/controller/main/esp_ot_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{ \
.radio_mode = RADIO_MODE_UART_RCP, \
.radio_uart_config = { \
.port = UART_NUM_1, \
.port = UART_NUM_1, \
.uart_config = \
{ \
.baud_rate = 460800, \
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/badge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if(CONFIG_ENABLE_ENCRYPTED_OTA)
target_add_binary_data(light.elf "esp_image_encryption_key.pem" TEXT)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/esp-now_bridge_light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ set(EXTRA_COMPONENT_DIRS

project(espnow_light)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/generic_switch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/icd_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set(EXTRA_COMPONENT_DIRS

project(icd_app)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-DCONFIG_OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES=5" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-DCONFIG_OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES=5;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os;-DCONFIG_OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_MAX_SERVICES=5" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/light_switch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/mfg_test_app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(EXTRA_COMPONENT_DIRS

project(mfg_test_app)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/refrigerator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/room_air_conditioner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/zap_light/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if(CONFIG_IDF_TARGET_ESP32C2)
include(relinker)
endif()

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down
2 changes: 1 addition & 1 deletion examples/zigbee_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ set(EXTRA_COMPONENT_DIRS

project(zigbee_bridge)

idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-fpermissive" APPEND)
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=gnu++17;-Os;-DCHIP_HAVE_CONFIG_H;-fpermissive;-Wno-overloaded-virtual" APPEND)
idf_build_set_property(C_COMPILE_OPTIONS "-Os" APPEND)
# For RISCV chips, project_include.cmake sets -Wno-format, but does not clear various
# flags that depend on -Wformat
Expand Down

0 comments on commit aea4a24

Please sign in to comment.