read_rtt
Read SEGGER RTT buffer content to access real-time log output from a microcontroller without halting execution.
Instructions
读取 SEGGER RTT(Real Time Transfer)缓冲区内容。 RTT 是非侵入式实时日志通道,无需停止目标即可读取。 需要目标固件中包含 SEGGER RTT 库并使用 SEGGER_RTT_printf() 输出。
Args: channel: RTT 通道号,默认 0(通常用于日志输出)。 max_bytes: 最大读取字节数,默认 1024。
Returns: 读取到的 RTT 文本内容。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |