Part Number: DRA755
Other Parts Discussed in Thread: CCSTUDIO
Tool/software: Code Composer Studio
Hi All,
I have running project where debugging with manual CCS is running fine.
I am trying to use jython to connect to the DSS port using the same ccxml file which is being used for the CCS connection manually.
from com.ti.debug.engine.scripting import *
from com.ti.ccstudio.scripting.environment import *
from java.lang import *
from java.util import *
import sys
import time
# Create our scripting environment object - which is the main entry point into any script and
# the factory for creating other Scriptable Servers and Sessions
script = ScriptingEnvironment.instance()
# Create a log file in the current directory to log script execution
script.traceBegin("dss_py.xml", "DefaultStylesheet.xsl")
# Set our TimeOut
script.setScriptTimeout(15000)
# Log everything
script.traceSetConsoleLevel(TraceLevel.ALL)
script.traceSetFileLevel(TraceLevel.ALL)
# Start up CCS
ccsServer = script.getServer("CCSServer.1")
ccsSession= ccsServer.openSession(".*")
# Get the Debug Server and start a Debug Session
debugServer = script.getServer("DebugServer.1")
debugServer.setConfig(r"c:\Users\ABiswal\ti\CCSTargetConfigurations\J6.ccxml");
debugSession=None
try:
#debugSession = debugServer.openSession("DRA75x_DRA74x_0/CortexM4_IPU_1_C0")
#debugSession = debugServer.openSession("Blackhawk XDS560v2-USB System Trace Emulator_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_IPU_1_C0")
debugSession = debugServer.openSession("*","*")
#debugSession = debugServer.openSession("Blackhawk XDS560v2-USB System Trace Emulator_0","Cortex_M4_IPU1_C0")
#debugSession = debugServer.openSession("DRA75x_DRA74x_0","Cortex_M4_IPU1_C0")
try:
# Connect to the target
debugSession.target.connect()
I have tried various options to connect to the core M4 IPU1 C0 ,but am unsuccessful to connect. It times out with the message
traceSetFileLevel: ENTRY sLevel: ALL
traceSetFileLevel: RETURN
getServer: ENTRY sServerName: CCSServer.1
getServer: Getting definition for: CCSServer.1
getServer: Constructing server
getServer: RETURN com.ti.ccstudio.scripting.CCSServer@da52a7
WARNING: CCSServer.openSession() failed. DSS was unable to launch Code Composer Studio, however script execution will continue. java.lang.ClassNotFoundException: com.ti.ccstudio.apps.scripting.ScriptUtils
getServer: ENTRY sServerName: DebugServer.1
getServer: Getting definition for: DebugServer.1
getServer: Constructing server
getServer: RETURN com.ti.debug.engine.scripting.DebugServer@1841b15
setConfig: ENTRY sConfigurationFile: c:\Users\ABiswal\ti\CCSTargetConfigurations\J6.ccxml
setConfig: RETURN
debuggerOpen: ENTRY sBoardName: * sCPUName: *
start: ENTRY
start: Firing: onServerStarting()
start: Connecting to XPCOM DebugServer
start: Initializing DebugServer using specified configuration: "c:\Users\ABiswal\ti\CCSTargetConfigurations\J6.ccxml"
waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@16ec9d0 timeout: 45000 (ms)
SEVERE: Timed out after 45000ms
stop: ENTRY
disposeAndUnload: Firing: onServerStopping()
disposeAndUnload: Stopping DebugServer
disposeAndUnload: Firing: onServerStopped()
stop: RETURN
SEVERE: Could not start server: DebugServer.1: Timed out after 45000ms
<type 'com.ti.ccstudio.scripting.environment.ScriptingException'>
stop: ENTRY
stop: RETURN
stop: ENTRY
stop: RETURN
I have followed the wiki pages to set up the environment.
Could someone point me what wrong I am doing ?
Thanks in advance.
Regards,
Biswal
