如何使用 RISC-V Trace32 调试器从 cmm 脚本重置我的 SoC。我没有连接到 SoC 的 TRST 或 SRST 串行线
我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在没有专用复位线的情况下从调试器复位 RISC-V 的正常方法如下:
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
configures 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.