This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCSTUDIO3:如何 Quot;reset"在 Jython 脚本中使用 cmd 行来实现 DSS 和捕获输出

Guru**** 2463730 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1496851/ccstudio3-how-to-reset-using-cmd-line-in-jython-script-for-dss-and-capture-output

器件型号:CCSTUDIO3

工具与软件:

团队成员、您好!

我正在使用 Jython - https://software-dl.ti.com/ccs/esd/documents/dss_python_dss_scripting.html 来编写该脚本

我在少数情况下需要支持。

1.重置命令,因为每次开始时我都需要重置。

2.当我在 CI/CD 框架中添加此脚本时、您能建议如何检查终端输出并在此脚本中获取此数据吗? 我没有得到任何参考。

3.我可以在 Python_dss 脚本中使用的命令列表,任何支持文档列出命令和示例?

期待你的意见、因为我没有得到有关这方面的充分资料。

谢谢!

Shriya

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Shriya,

    可用的 DSS API 记录在<INSTALLDIR/ccs_base/scripting/docs/ds_api/index.html 中

    例如、如果要发出复位命令、可以执行以下操作:  

    debugSession.target.reset ();

    至于读取终端输出、因为这是一个 python 脚本、所以您应该能够通过标准的 python 来执行所需的操作。

    谢谢!

    Ricky