主题中讨论的其他器件:TMS320F28379D
工具与软件:
您好!
我尝试在 DSS 环境中使用 javascript 文件来启动 CCS GUI 会话、并设置了所有参数和窗口。
为此,我阅读了以下 资料:
7.6.脚本–Code Composer Studio 12.7.0文档
从 DSS 启动 Code Composer Studio (TI.com)
在最后一个示例中、出现注释:"等待 CCS IDE 完全启动。" 这似乎是一个非常重要的信息!
如果 DSS 脚本环境中的某些操作未准备就绪、CCS IDE 似乎会"忽略" 这些操作(显示了已打开的调试会话、其中考虑了闪存上的某个"选项"、其他?)。
为了让 CCS IDE 准备好、我在以下 DSS 脚本中添加了一些难看的"等待"指令。
// Get scripting environment singleton var script = ScriptingEnvironment.instance(); // Logging configuration script.traceBegin("ccs_log.xml") script.traceSetConsoleLevel(TraceLevel.CONFIG) script.traceSetFileLevel(TraceLevel.CONFIG) // Script timeout in millisecond for current environment (-1 infinite) script.setScriptTimeout(60000); var timeout = script.getScriptTimeout(); script.traceWrite("timeout: " + timeout); // Starting up a CCS IDE ccsServer = script.getServer("CCSServer.1"); ccsSession = ccsServer.openSession(".*"); // Waiting to let IDE to be fully loaded (no synchronization schem found between javascript and eclipse) Thread.sleep(15000); // in milliseconds // Starting up a DebugServer var debugServer = script.getServer("DebugServer.1"); debugServer.setConfig("targetConfigs/LaunchpadXL_TMS320F28379D_woGEL.ccxml"); var debugSession = debugServer.openSession(".*C28xx_CPU1.*"); // Waiting to led IDE to capture this session (and take into account following configuration) Thread.sleep(5000); // in milliseconds // Configure and connect to target debugSession.options.setString("FlashEraseSelection","Necessary Sectors Only (for Program Load)"); debugSession.target.connect();
是否有任何构建与 CCS IDE 同步的方法?
谢谢。
达米恩