From f8e0b7986789c17072b2eb3535ba44f93ec93be1 Mon Sep 17 00:00:00 2001 From: Zhang Shuxian Date: Thu, 28 Aug 2025 16:44:52 +0800 Subject: [PATCH] docs: Update CN translation for system --- docs/en/api-guides/app_trace.rst | 2 +- docs/en/migration-guides/release-6.x/6.0/system.rst | 2 ++ docs/zh_CN/api-guides/app_trace.rst | 2 +- docs/zh_CN/migration-guides/release-6.x/6.0/system.rst | 6 ++++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/en/api-guides/app_trace.rst b/docs/en/api-guides/app_trace.rst index 381afafdbb..3476c901af 100644 --- a/docs/en/api-guides/app_trace.rst +++ b/docs/en/api-guides/app_trace.rst @@ -41,7 +41,7 @@ Using of this feature depends on two components: 1. **Host side:** Application tracing is done over JTAG, so it needs OpenOCD to be set up and running on host machine. For instructions on how to set it up, please see :doc:`JTAG Debugging <../api-guides/jtag-debugging/index>` for details. -2. **Target side:** Application tracing functionality can be enabled in menuconfig. Please go to ``Component config`` > ``Application Level Tracing`` menu, which allows selecting destination for the trace data (hardware interface for transport: JTAG or/and UART). Choosing any of the destinations automatically enables the ``CONFIG_APPTRACE_ENABLE`` option. For UART interfaces, users have to define, port number, baud rate, TX and RX pins numbers, and additional UART-related parameters. +2. **Target side:** Application tracing functionality can be enabled in menuconfig. Please go to ``Component config`` > ``Application Level Tracing`` menu, which allows selecting destination for the trace data (hardware interface for transport: JTAG or/and UART). Choosing any of the destinations automatically enables the ``CONFIG_APPTRACE_ENABLE`` option. For UART interfaces, users have to define port number, baud rate, TX and RX pins numbers, and additional UART-related parameters. .. note:: diff --git a/docs/en/migration-guides/release-6.x/6.0/system.rst b/docs/en/migration-guides/release-6.x/6.0/system.rst index 1b2f4e3269..1bf1b5bd59 100644 --- a/docs/en/migration-guides/release-6.x/6.0/system.rst +++ b/docs/en/migration-guides/release-6.x/6.0/system.rst @@ -89,6 +89,7 @@ The UART destination configuration has been simplified: To migrate, update your sdkconfig: Old configuration: + .. code-block:: none CONFIG_APPTRACE_DEST_UART0=y @@ -96,6 +97,7 @@ Old configuration: CONFIG_APPTRACE_DEST_UART1=y New configuration: + .. code-block:: none CONFIG_APPTRACE_DEST_UART=y diff --git a/docs/zh_CN/api-guides/app_trace.rst b/docs/zh_CN/api-guides/app_trace.rst index edc69a86f8..eedeeae413 100644 --- a/docs/zh_CN/api-guides/app_trace.rst +++ b/docs/zh_CN/api-guides/app_trace.rst @@ -41,7 +41,7 @@ ESP-IDF 中提供了应用层跟踪功能,用于分析应用程序的行为。 1. **主机端:** 应用程序跟踪通过 JTAG 来完成,因此需要在主机上安装并运行 OpenOCD。详细信息请参阅 :doc:`JTAG 调试 <../api-guides/jtag-debugging/index>`。 -2. **目标端:** 在 menuconfig 中开启应用程序跟踪功能。前往 ``Component config`` > ``Application Level Tracing`` 菜单,选择跟踪数据的传输目标(具体用于传输的硬件接口:JTAG 和/或 UART),选择任一非 None 的目标都会自动开启 ``CONFIG_APPTRACE_ENABLE`` 这个选项。对于 UART 接口,用户必须定义波特率、TX 和 RX 管脚及其他相关参数。 +2. **目标端:** 在 menuconfig 中开启应用程序跟踪功能。前往 ``Component config`` > ``Application Level Tracing`` 菜单,选择跟踪数据的传输目标(具体用于传输的硬件接口:JTAG 和/或 UART),选择任一非 None 的目标都会自动开启 ``CONFIG_APPTRACE_ENABLE`` 这个选项。对于 UART 接口,用户需要定义端口号、波特率、TX 和 RX 管脚及其他相关参数。 .. note:: diff --git a/docs/zh_CN/migration-guides/release-6.x/6.0/system.rst b/docs/zh_CN/migration-guides/release-6.x/6.0/system.rst index 86d4ae44b1..8a3888909a 100644 --- a/docs/zh_CN/migration-guides/release-6.x/6.0/system.rst +++ b/docs/zh_CN/migration-guides/release-6.x/6.0/system.rst @@ -86,9 +86,10 @@ UART 目标配置已简化: - 移除:通过 ``CONFIG_APPTRACE_DEST_UARTx=y`` 选择单个 UART - 新增:通过 ``CONFIG_APPTRACE_DEST_UART_NUM`` 选择 UART 端口 -迁移方法,更新您的 sdkconfig: +迁移方法,更新你的 sdkconfig 配置: 旧配置: + .. code-block:: none CONFIG_APPTRACE_DEST_UART0=y @@ -96,10 +97,11 @@ UART 目标配置已简化: CONFIG_APPTRACE_DEST_UART1=y 新配置: + .. code-block:: none CONFIG_APPTRACE_DEST_UART=y - CONFIG_APPTRACE_DEST_UART_NUM=0 # 根据目标设备可选择 0、1、2 + CONFIG_APPTRACE_DEST_UART_NUM=0 # 或 1、2,具体取决于目标芯片 FreeRTOS --------