如何使用 RISC-V Trace32 调试器从 cmm 脚本重置我的 SoC。我没有连接到 SoC 的 TRST 或 SRST 串行线

发布于 2025-01-14 12:07:39 字数 264 浏览 9 评论 0原文

我的 cmm 脚本是这样的:

..cmm 脚本

“”GTL config and GTL connect” 的开始 ""一些 JTAG.SHIFT 操作""

JTAG.PIN 禁用

system.mode 准备;此处需要重置。我正在尝试重置我的 SoC

WAIT 10.MS ;此 WAIT 命令不起作用,未观察到

system.down 10ms 延迟 system.mode 准备

...cmm 脚本结束

My cmm script is something like this :

..start of cmm script

""GTL config and GTL connect""
""some JTAG.SHIFT operations""

JTAG.PIN DISable

system.mode prepare ;Need a reset here. I am trying this to reset my SoC

WAIT 10.MS ;this WAIT command is not working, no 10ms delay observed

system.down
system.mode prepare

...end of cmm script

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多情癖 2025-01-21 12:07:39

在没有专用复位线的情况下从调试器复位 RISC-V 的正常方法如下:

SYStem.Option.ResetMode NDMRST  
SYStem.Up 

SYStem.Option.ResetMode NDMRST 将 TRACE32 配置为通过 dmcontrol 调试的 ndmreset 位执行所有系统复位RISC-V 调试模块中的寄存器(因此没有物理 SRST 引脚)。

然后,SYStem.Up 在将调试器连接到内核之前实际执行重置。您还可以从运行状态调用 SYStem.Up,只是为了重置系统。

但看起来,您希望在准备状态甚至关闭状态下进行重置。我想您应该联系劳特巴赫支持人员了解如何做到这一点。

The normal approach to reset your RISC-V from the debugger without having a dedicated reset line is the following:

SYStem.Option.ResetMode NDMRST  
SYStem.Up 

SYStem.Option.ResetMode NDMRSTconfigures TRACE32 to perform all system resets via the ndmreset bit of the dmcontrol debug register in the RISC-V debug module (so without physical SRST pin).

SYStem.Up is then actually performing the reset before it connects the debugger with the core. You can also call SYStem.Up from up-state, just to reset your system.

However it looks like, you want to do the reset in prepare-state or even down-state. I guess you should contact the Lauterbach support on how to do that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文