使用命令行运行trace32时出错 [英] Error in running trace32 with command line

查看:403
本文介绍了使用命令行运行trace32时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.cmm文件,可帮助调试Qcomm芯片组。

I have a .cmm file which helps in debugging of Qcomm chipsets.

此文件的一行: cd ../.。 /../../../ modem_proc

当我使用T32 GUI运行相同的cmm文件时,它运行良好并且工作。但是当我尝试使用Windows命令行运行同一文件时,

When I run this same cmm file using T32 GUI, it runs fine and does the work. But when I am trying to run the same file using windows command line using,

C:\T32\bin\windows64>t32mqdsp6.exe -c C:\T32\config.t32 -s D:\path\to\xxx.cmm

在T32中引发以下错误:B :: cd ../../../../../modem_proc语法错误

Following error is thrown in T32: syntax error in B::cd ../../../../../modem_proc

我在这里缺少什么?我从没有亲身体验过T32。

What am I missing here? I have no hands-on experience with T32 what-so-ever.

推荐答案

问题可能来自不同的工作目录。类型

The problem probably results from different working directories. Type

PRINT OS.PWD()

$在GUI中b
$ b

并将其添加到脚本顶部。我怀疑它们是不同的。

in the GUI and add it to the top of the script. I'd suspect they are different.

不要使用工作目录相对路径,而应使用相对于脚本的路径,例如

Don't use working directory relative paths, instead use paths relative to the script, e.g.

CD ~~~~/../../../../modem_proc

四个代字号(〜)表示当前执行脚本的目录。使用多个GUI和对讲机时,此解决方案仍然可能存在问题,但是对于大多数用例来说,应该可以。

The four tilde (~) symbols mean "directory of the currently executed script". There's still a possible issue with this solution when using multiple GUIs and the intercom, but for most use-cases this should be OK.

这篇关于使用命令行运行trace32时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆