部件号:DRA755
工具/软件:Code Composer Studio
大家好,
我正在运行的项目中,使用手动CCS进行调试运行正常。
我尝试使用Jython连接到DSS端口,使用的是用于CCS连接的同一CCXML文件。
从com.ti.debug.engine.scripting导入*
从com.ti.ccStudio.scripting.environment导入*
从java.lang导入*
从java.util导入*
导入系统
导入时间
#创建脚本环境对象-它是任何脚本的主要入口点,
#创建其他可脚本服务器和会话
脚本的工厂= ScriptingEnvironment.instance
#在当前目录中创建日志文件以记录脚本执行
脚本.traceBegin("dss_py.xml","DefaultStylesheet.xsl")
#设置超时
script.setScriptTimeout(1.5万
#记录所有
脚本.traceSetopenConsoleLevel(TraceLevel.All)
script.traceSetFileLevel(TraceLevel.All)
#启动
ccccccccccsserver=调试服务器=
debugServer.setConfig(r"c:\Users\ABiswal\ti\CCSTargetConfigurations\J6.ccxml"); sgetSg1调试
服务器=
#debugSession = debugServer.openSession ("DRA75x_DRA74x_0/CortexM4_IPU_1_C0")
#debugSession = debugServer.openSession("Blackhawk XDS560v2-USB系统跟踪仿真器_0/CortexM4_IPU_2_C0")
#debugSession = debugServer.openSession ("DRA75x_DRA74x_0/IcePick_D/IPU_1_C0/CS_DAP_1_C0/CortexM4_IPU_1_C0/CortexM4_IPM4_IPU_1_C0")
debugSession = debugServer.openSession("*","*")
#debugSession = debugServer.openSession("Blackhawk XDS560v2-USB系统跟踪仿真器_0","Cortex_M4_IPU1_C0")
#debugSession = debugServer.openSession ("DRA75x_DRA74x_0","Cortex_M4_IPU1_C0")
尝试:
#连接到目标
debugSession.target.connect()
我尝试了多种方法连接到核心M4 IPU1 C0,但连接失败。 消息超时
traceSetFileLevel:项sLevel:全部
traceSetFileLevel:返回
getServer:条目sServerName: CCSServer.1
getServer:正在获取定义: CCSServer.1
getServer:正在构建服务器
GetServer:返回com.ti.ccStudio.scripting.CCSServer@da52a7
警告:CCSServer.openSession()失败。 DSS无法启动Code Composer Studio,但脚本执行将继续。java.lang.ClassNotFoundException: COM.TI.CCStudio.apps.scripting.ScriptUtils
getServer:条目sServerName: DebugServer.1
getServer:正在获取定义: DebugServer.1
getServer:正在构建服务器
getServer:返回com.ti.debug.engine.scripting.DebugServer@1841b15
setConfig: Entry sConfigurationFile: C:\Users\ABiswal\ti\CCSTargetConfigurations\J6.CCXML
setConfig:返回
调试程序打开:条目sBoardName:* sCPUName:*
开始:输入
start:触发: onServerStarting()
开始:连接到XPCOM DebugServer
开始:使用指定的配置初始化DebugServer:"C:\Users\ABiswal\ti\CCSTargetConfigurations\J6.CCXML"
waitUntil:entry com.ti.ccStudio.scripting.environment.ScriptingEnvironment@16ec9d0超时:4.5万 (ms)
严重:4.5万ms后超时
停止:输入
disposeAndUnload:触发: onServerStop()
disposeAndUnload:正在停止DebugServer
disposeAndUnload:触发: onServerStopped()
停止:返回
严重:无法启动服务器:DebugServer.1:4.5万ms后超时
键入'com.ti.CCStudio.scripting.environment.ScriptingException'>
停止:输入
停止:返回
停止:输入
停止:返回
我已按照wiki页面设置环境。
有人能告诉我我我做错了什么吗?
提前感谢。
此致,
Biswal
