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.

[参考译文] CODECOMPOSER:.out文件在dss.sh js环境下加载速度较慢

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1097979/codecomposer-out-file-slow-to-load-under-dss-sh-js-environment

部件号:CODECOMPOSER
主题中讨论的其他部件:CCStudio

Ubuntu 18.04

没有正在运行的AV软件

CCS 1110

具有板载XDS110调试探头的J7100(J7ES) EVM版本E7 SOM

使用dss.sh运行Java脚本,该脚本将按顺序加载多个.out文件,运行这些文件并将CIO结果存储在各个报告文件中。  流量运行,但第一个负载后的所有.out负载需要10分钟或更长时间(第一个负载需要几秒钟)。  我可以更改.out文件的顺序,然后先交换和第二交换,并且总是第二次和后续加载需要更长时间。

可能与此相关,我也有过CCS 10.1 的经验。1在Windows 10上运行手动加载...关闭并重新打开主板电源,然后拔下/插入USB将在这种情况下清除它。

如果您有任何关于如何加快速度的想法,我们将不胜感激!

TIA,
弗兰克·卡诺

这是JavaScript

ImportPackage( Packages.com.ti.debug.engine.scripting )
ImportPackage( Packages.com.ti.ccstudio.scripting.environment )
ImportPackage(JAVA.IO);
ImportPackage(java.lang);

参数=此参数。参数;

VAR runDir,exePattern,kernelList,testCaseList,configFile, reportDir, testCase;
//IF (参数长度< 3)
IF (参数长度< 5)

exitWithHelp();
}其他{
runDir =参数[0];
kernelList =参数[1];
testCaseList =参数[2];
ConfigFile =参数[3];
reportDir =参数[4];
}


debugServer = ScriptingEnvironment.instance().getServer (“DebugServer.1”)
debugServer.setConfig (configFile)

//m3ds = debugServer.openSession(“Spectrum Digital XDS560V2 STM USB Emulator_0/DMSC_Cortex_M3_0");
m3ds = debugServer.openSession(“德州仪器(TI) XDS110 USB Debug Probe_0/DMSC_Cortex_M3_0");

// m3ds = debugServer.openSession(.
//"Texas Instruments XDS110 USB调试探头_0/DMSC_Cortex_M3_0"
//);


打印(“正在连接到M3 ...”)
m3ds.target.connect();
打印("已连接到M3!")

/*运行DDR配置*/
打印("正在运行DDR配置... 等到它完成!");
m3ds.target.halt ();
m3ds.expression.evaluate ("J7ES_LPDDR4_Config()");
m3ds.target.runAsynch();

//用于(i=0;i<numReset;i++)
//{
// reset[i]=m3ds.getResetType(i);


////发出系统重置
// if (reset[i].getName().indexOf("System Reset")!=-1)
//{
//打印("发出系统重置")
// reset[i].issueReset();
// print(reset[i].getName());
//}
//}

// m3ds.target.reset();
// m3ds.expression.evaluate("OnTargetConnect()");

//dspds = debugServer.openSession("Spectrum Digital XDS560V2 STM USB Emulator_0/C71X_0");
dspds = debugServer.openSession(“德州仪器(TI) XDS110 USB Debug Probe_0/C71X_0";
// dspds = debugServer.openSession(.
//"Texas Instruments XDS110 USB调试探头_0/C71X_0"
//);
dspds.target.connect();
// dspds.target.reset();

var kernelListFileReader = new FileReader (kernelList);
var kernelBufferedReader = new BufferedReader (kernelListFileReader);
VAR kernelLine,testCaseLine;
VAR exeFile;
VAR kernelDir;
VAR内核名称;

打印("循环运行所有内核和所有测试用例");
同时((kernelLine = kernelBufferedReader.readline())!=空){
kernelName = kernelLine;
kernelDir = runDir + kernelName;
testCaseList = kernelDir +"/test_reports/test_id_list.txt"
var testCaseListFileReader = new FileReader(testCaseList);
var testCaseBufferedReader = new BufferedReader(testCaseListFileReader);
while ((testCaseLine = testCaseBufferedReader.readline())!= null){
//打印(kernelName.split("/").pop());
// kernelName.match(//(.*)/)
exeFile = kernelDir +'/'+"out "+'/'+ kernelName.split("/").pop ()+"_C7100_test_case_"+ testCaseLine +".out;
// m3ds.expression.evaluate ("Toggle C7x_LRST ()");
打印("正在加载二进制文件:"+ exeFile +"...");
dspds.memory.loadProgram(exeFile);
reportDir = kernelDir +"/test_reports/"
dspds.beginCIOLogging(reportDir +"test_dump_case_"+ testCaseLine);
dspds.target.run();
dspds.endCIOLogging();
// dspds.target.reset();
}
testCaseBufferedReader.close();
}

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

    您好,

    是否可以生成  具有完全详细信息的DSS日志(TraceLevel.All)并将其发布到此线程?

    谢谢

    KI