目前在用xds560V2 pro 做tracePOD,发现一个很奇怪的问题。
我在CentOS 7 的系统上跑js脚本,运行如下命令:
// Get the Debug Server and start a Debug Session
var debugServer = script.getServer("DebugServer.1");
script.traceWrite("\nsetConfig setupfile: " + arglist[ARG_SETUPFILE]);
debugServer.setConfig(arglist[ARG_SETUPFILE]);
debugServer.testConnection();
script.traceWrite("openSession for target name: " + arglist[ARG_TARGETNAME]);
var debugSession = debugServer.openSession(arglist[ARG_TARGETNAME]);
script.traceWrite("openSession END ");
得到的log如下:
The JTAG DR Integrity scan-test has succeeded.
openSession for target name: Spectrum Digital XDS560V2 STM USB Emulator_0/C66xx_0
Loaded FPGA Image: /opt/ti/ccsv6/ccs_base/emulation/drivers/../../common/uscif/./xds560v2pro.xsvf
openSession END
SEVERE: Option is disabled or readonly; unable to set value.
从log结果看,USB连接测试是成功的,但是有两个问题,1.Loaded FPGA Image, 这里的路径和之前testConnection时的路径是不一样的。testConnection 路径如下:
Loaded FPGA Image: /opt/ti/ccsv6/ccs_base/common/uscif/./././././xds560v2pro.xsvf
这个问题不知道是如何引起的。
另外,我在ccstudio 客户端 使用/View/Scripting console 跑上面的js命令时,并没有出现Loaded FPGA Image 这个提示,另外命令也能成功openSession。
这两者的区别到底在哪里?有没有类似在linux OS跑JS脚本命令的参考文档可以去参考,谢谢!!