Hi,
I am trying to test the application running on the controller TM4C129XNCZAD.
To validate the js (script) i have declared a TEST_VAR in the application code and have assigned it with value 10 and in the java script i am trying to read the same using
var address = debugSession.symbol.getAddress("TEST_VAR_X")
var data = debugSession.memory.readData(Memory.Page.PROGRAM, address, 1, 1)
Prior to that i have used,
debugSession = debugServer.openSession(".*")
to begin the debug session, the issue is, when the interpreter reaches this line it is unable to select the CPU and it throws the following error
Please help me resolve this. (attached is the xml log file)
listDevices: Found debuggable device: Texas Instruments XDS2xx USB Onboard Debug Probe_0/CORTEX_M4_0
listDevices: Found non-debuggable device: Texas Instruments XDS2xx USB Onboard Debug Probe_0/CS_DAP_0
listDevices: RETURN
start: RETURN
openSession: Searching for device exactly matching name: .*
openSession: No exact name matches found. Searching for device matching regular expression: .*
disposeAndUnload: Firing: onServerStopping()
disposeAndUnload: Stopping DebugServer
terminate: ENTRY
terminate: RETURN
terminate: ENTRY
terminate: RETURN
waitUntil: ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1c07562 timeout: infinite
waitUntil: RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1c07562
disposeAndUnload: Firing: onServerStopped()
SEVERE: Could not open session. Found 2 devices matching: .*
Texas Instruments XDS2xx USB Onboard Debug Probe_0/CORTEX_M4_0
Texas Instruments XDS2xx USB Onboard Debug Probe_0/CS_DAP_0
org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Could not ope
n session. Found 2 devices matching: .*
Texas Instruments XDS2xx USB Onboard Debug Probe_0/CORTEX_M4_0
Texas Instruments XDS2xx USB Onboard Debug Probe_0/CS_DAP_0 (try.js#21)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1693)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:160)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:204)
at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
at org.mozilla.javascript.gen.c1._c0(try.js:21)
at org.mozilla.javascript.gen.c1.call(try.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
at org.mozilla.javascript.gen.c1.call(try.js)
at org.mozilla.javascript.gen.c1.exec(try.js)
at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:503)
at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:425)
at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:391)
at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:382)
at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
at org.mozilla.javascript.Context.call(Context.java:528)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:450)
at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
at com.ti.ccstudio.apps.internal.scripting.RunScript$1.run(RunScript.java:88)
Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Could not open session. Found 2 devices matching: .
*