readjtaguart - 2023.2 简体中文

Vitis 统一软件平台文档 嵌入式软件开发 (UG1400)

Document ID
UG1400
Release Date
2023-12-13
Version
2023.2 简体中文

开始/停止读取 JTAG UART。

语法

readjtaguart [options]

开始/停止读取 Arm DCC 或 MDM UART TX 接口。JTAG UART 输出可打印在 stdout 上或者重定向到文件。

选项

选项 描述
-start 开始读取 JTAG UART 输出。
-stop 停止读取 JTAG UART 输出。
-handle <file-handle> 指定应将数据重定向到的文件句柄。如不指定文件句柄,则将在 stdout 上打印数据。

注释

  • 运行此命令前,请选中 MDM 或 Arm 处理器目标。
  • 以非交互模式运行脚本时,JTAG UART 的输出无法写入 log 日志,直至使用“readjtaguart -stop”为止。

返回

如果成功,则不返回任何结果。如果无法从 JTAG UART 读取数据,则返回错误字符串。

示例

readjtaguart

开始从 JTAG UART 读取,并在 stdout 上打印输出。

set fp [open test.log w]; readjtaguart -start -handle $fp

开始从 JTAG UART 读取,并将输出打印到 test.log。

readjtaguart -stop

停止读取 JTAG UART。