update idf version to v5.2.1

This commit is contained in:
liyashuai
2024-04-02 17:02:49 +08:00
parent 28dc66a305
commit 2d8bfd5faa
7 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -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.1
REQUIRED_IDF_VERSION: v5.2.1
jobs:
build:
+3 -3
View File
@@ -166,7 +166,7 @@ build_esp_matter_examples_pytest_C6_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "6b1f40b9bfb91ec82fab4a60e5bfb4ca0c9b062f"
IDF_VERSION: "v5.2.1"
script:
- cd ${ESP_MATTER_PATH}
- pip install -r tools/ci/requirements-build.txt
@@ -198,7 +198,7 @@ build_esp_matter_examples_pytest_H2_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "6b1f40b9bfb91ec82fab4a60e5bfb4ca0c9b062f"
IDF_VERSION: "v5.2.1"
script:
- *setup_ot_rcp
- *setup_ot_br
@@ -221,7 +221,7 @@ build_esp_matter_examples_non_pytest_idf_v5_1:
when: always
expire_in: 4 days
variables:
IDF_VERSION: "6b1f40b9bfb91ec82fab4a60e5bfb4ca0c9b062f"
IDF_VERSION: "v5.2.1"
script:
- *build_external_platform_example
- *build_esp32c6_thread_example
+1 -1
View File
@@ -28,7 +28,7 @@ section in the ESP-Matter Programming Guide.
## Supported ESP-IDF and connectedhomeip versions
- This SDK currently works with [v1.2-branch](https://github.com/espressif/connectedhomeip/tree/v1.2-branch) of espressif/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
+11 -11
View File
@@ -23,7 +23,7 @@ Additionally, we also support developing on Windows Host using WSL.
The Prerequisites for ESP-IDF and Matter:
- Please see `Prerequisites <https://docs.espressif.com/projects/esp-idf/en/v5.1.1/esp32/get-started/index.html#step-1-install-prerequisites>`__ for ESP IDF.
- Please see `Prerequisites <https://docs.espressif.com/projects/esp-idf/en/v5.2.1/esp32/get-started/index.html#step-1-install-prerequisites>`__ for ESP IDF.
- Please get the `Prerequisites <https://github.com/espressif/connectedhomeip/blob/v1.1-branch/docs/guides/BUILDING.md#prerequisites>`__ for Matter.
@@ -41,7 +41,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 VSCode for development, please check `Developing in WSL <https://code.visualstudio.com/docs/remote/wsl>`__.
@@ -233,7 +233,7 @@ Choose IDF target.
::
ERROR: This script was called from a virtual environment, can not create a virtual environment again
Run:
::
@@ -632,14 +632,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);
@@ -677,7 +677,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:
@@ -696,7 +696,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);
@@ -719,7 +719,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:
@@ -768,19 +768,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:
+1 -1
View File
@@ -1,7 +1,7 @@
5. Security Considerations
==========================
{IDF_TARGET_RELEASE:default="v5.1.1"}
{IDF_TARGET_RELEASE:default="v5.2.1"}
5.1 Overview
------------
@@ -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);
@@ -354,7 +358,7 @@ int create(uint8_t device_type_index)
break;
}
}
if (!endpoint) {
ESP_LOGE(TAG, "Matter create endpoint failed");
return 1;
@@ -372,7 +376,7 @@ int create(uint8_t device_type_index)
xSemaphoreGive(semaphoreHandle);
}
}
return 0;
}
@@ -387,7 +391,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);
@@ -426,11 +430,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");
@@ -498,7 +502,7 @@ void init(void)
}
void deinit(void)
{
{
fflush(stdout);
fsync(fileno(stdout));
esp_console_deinit();
+1 -1
View File
@@ -28,7 +28,7 @@
{ \
.radio_mode = RADIO_MODE_UART_RCP, \
.radio_uart_config = { \
.port = 1, \
.port = UART_NUM_1, \
.uart_config = \
{ \
.baud_rate = 460800, \