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.
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)
<?xml version="1.0" encoding="windows-1252" standalone="no"?> <?xml-stylesheet type="text/xsl" href="C:/ti/ccsv6/ccs_base/scripting/examples/DebugServerExamples/DefaultStylesheet.xsl"?> <log> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799144</millis> <sequence>3</sequence> <logger>com.ti</logger> <level>FINER</level> <class>com.ti.ccstudio.scripting.environment.ScriptingEnvironment</class> <method>traceSetFileLevel</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799146</millis> <sequence>4</sequence> <logger>com.ti</logger> <level>FINER</level> <class>com.ti.ccstudio.scripting.environment.ScriptingEnvironment</class> <method>getServer</method> <thread>23</thread> <message>ENTRY sServerName: DebugServer.1</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799146</millis> <sequence>5</sequence> <logger>com.ti</logger> <level>FINER</level> <class>com.ti.ccstudio.scripting.environment.ScriptingEnvironment</class> <method>getServer</method> <thread>23</thread> <message>Getting definition for: DebugServer.1</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799152</millis> <sequence>6</sequence> <logger>com.ti</logger> <level>FINER</level> <class>com.ti.ccstudio.scripting.environment.ScriptingEnvironment</class> <method>getServer</method> <thread>23</thread> <message>Constructing server</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799155</millis> <sequence>7</sequence> <logger>com.ti</logger> <level>FINER</level> <class>com.ti.ccstudio.scripting.environment.ScriptingEnvironment</class> <method>getServer</method> <thread>23</thread> <message>RETURN com.ti.debug.engine.scripting.DebugServer@18f50db</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799156</millis> <sequence>8</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>setConfig</method> <thread>23</thread> <message>ENTRY sConfigurationFile: C:/Users/saggen1/workspace/UIS_Board/targetConfigs/Tiva TM4C129XNCZAD.ccxml</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799157</millis> <sequence>9</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>setConfig</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799158</millis> <sequence>10</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>openSession</method> <thread>23</thread> <message>ENTRY sPattern: .*</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799159</millis> <sequence>11</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>ENTRY</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799159</millis> <sequence>12</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>Firing: onServerStarting()</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799160</millis> <sequence>13</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>Connecting to XPCOM DebugServer</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799248</millis> <sequence>14</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>Initializing DebugServer using specified configuration: "C:/Users/saggen1/workspace/UIS_Board/targetConfigs/Tiva TM4C129XNCZAD.ccxml"</message> </record> <record> <date>2015-09-08T16:26:39</date> <millis>1441709799249</millis> <sequence>15</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer$Callback</class> <method>waitUntil</method> <thread>23</thread> <message>ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1795ad3 timeout: infinite</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801669</millis> <sequence>16</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>CPU Name: CORTEX_M4_0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801670</millis> <sequence>17</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>PartNum: TM4C129XNCZAD</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801670</millis> <sequence>18</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Family: 470</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801670</millis> <sequence>19</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>SubFamily/MajorISA: e</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801670</millis> <sequence>20</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Revision/MinorISA: 0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801671</millis> <sequence>21</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Platform: EMULATOR</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801671</millis> <sequence>22</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Processor ID: 1971337216</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801682</millis> <sequence>23</sequence> <logger>com.ti.debug.engine.scripting.Options</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.Options</class> <method><init></method> <thread>27</thread> <message>DBName: ArmAdvancedFeatures</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801685</millis> <sequence>24</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>CPU Name: CS_DAP_0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801685</millis> <sequence>25</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>PartNum: TM4C129XNCZAD</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801687</millis> <sequence>26</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Family: 224</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801687</millis> <sequence>27</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>SubFamily/MajorISA: 1</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801688</millis> <sequence>28</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Revision/MinorISA: 0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801688</millis> <sequence>29</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Platform: NONE</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801688</millis> <sequence>30</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method><init></method> <thread>27</thread> <message>Processor ID: 939525125</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801688</millis> <sequence>31</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer$Callback</class> <method>waitUntil</method> <thread>23</thread> <message>RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1795ad3</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801689</millis> <sequence>32</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>Firing: onServerStarted()</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801689</millis> <sequence>33</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>Searching for devices</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801689</millis> <sequence>34</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>listDevices</method> <thread>23</thread> <message>ENTRY</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801689</millis> <sequence>35</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>listDevices</method> <thread>23</thread> <message>Found debuggable device: Texas Instruments XDS2xx USB Onboard Debug Probe_0/CORTEX_M4_0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801690</millis> <sequence>36</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>listDevices</method> <thread>23</thread> <message>Found non-debuggable device: Texas Instruments XDS2xx USB Onboard Debug Probe_0/CS_DAP_0</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801690</millis> <sequence>37</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>listDevices</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801691</millis> <sequence>38</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>start</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801691</millis> <sequence>39</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>openSession</method> <thread>23</thread> <message>Searching for device exactly matching name: .*</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801691</millis> <sequence>40</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>openSession</method> <thread>23</thread> <message>No exact name matches found. Searching for device matching regular expression: .*</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801691</millis> <sequence>41</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>disposeAndUnload</method> <thread>23</thread> <message>Firing: onServerStopping()</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801692</millis> <sequence>42</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>disposeAndUnload</method> <thread>23</thread> <message>Stopping DebugServer</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801692</millis> <sequence>43</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method>terminate</method> <thread>23</thread> <message>ENTRY</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801692</millis> <sequence>44</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method>terminate</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801693</millis> <sequence>45</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method>terminate</method> <thread>23</thread> <message>ENTRY</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801693</millis> <sequence>46</sequence> <logger>com.ti.debug.engine.scripting.DebugSession</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugSession</class> <method>terminate</method> <thread>23</thread> <message>RETURN</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801694</millis> <sequence>47</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer$Callback</class> <method>waitUntil</method> <thread>23</thread> <message>ENTRY com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1795ad3 timeout: infinite</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801964</millis> <sequence>48</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer$Callback</class> <method>waitUntil</method> <thread>23</thread> <message>RETURN com.ti.ccstudio.scripting.environment.ScriptingEnvironment@1795ad3</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801964</millis> <sequence>49</sequence> <logger>com.ti.debug.engine.scripting.DebugServer</logger> <level>FINER</level> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>disposeAndUnload</method> <thread>23</thread> <message>Firing: onServerStopped()</message> </record> <record> <date>2015-09-08T16:26:41</date> <millis>1441709801965</millis> <sequence>50</sequence> <logger>com.ti.ccstudio.scripting.environment.ScriptingException</logger> <level>SEVERE</level> <class>com.ti.ccstudio.scripting.environment.ScriptingException</class> <method>logException</method> <thread>23</thread> <message>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</message> <exception> <message>com.ti.ccstudio.scripting.environment.ScriptingException: 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</message> <frame> <class>com.ti.debug.engine.scripting.DebugServer$SessionFactory</class> <method>processMatches</method> <line>200</line> </frame> <frame> <class>com.ti.debug.engine.scripting.DebugServer$SessionFactory</class> <method>matchByRegularExpression</method> <line>259</line> </frame> <frame> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>openSession</method> <line>1128</line> </frame> <frame> <class>com.ti.debug.engine.scripting.DebugServer</class> <method>openSession</method> <line>68</line> </frame> <frame> <class>sun.reflect.NativeMethodAccessorImpl</class> <method>invoke0</method> </frame> <frame> <class>sun.reflect.NativeMethodAccessorImpl</class> <method>invoke</method> </frame> <frame> <class>sun.reflect.DelegatingMethodAccessorImpl</class> <method>invoke</method> </frame> <frame> <class>java.lang.reflect.Method</class> <method>invoke</method> </frame> <frame> <class>org.mozilla.javascript.MemberBox</class> <method>invoke</method> <line>145</line> </frame> <frame> <class>org.mozilla.javascript.NativeJavaMethod</class> <method>call</method> <line>204</line> </frame> <frame> <class>org.mozilla.javascript.optimizer.OptRuntime</class> <method>call1</method> <line>66</line> </frame> <frame> <class>org.mozilla.javascript.gen.c1</class> <method>_c0</method> <line>21</line> </frame> <frame> <class>org.mozilla.javascript.gen.c1</class> <method>call</method> </frame> <frame> <class>org.mozilla.javascript.ContextFactory</class> <method>doTopCall</method> <line>340</line> </frame> <frame> <class>org.mozilla.javascript.ScriptRuntime</class> <method>doTopCall</method> <line>2758</line> </frame> <frame> <class>org.mozilla.javascript.gen.c1</class> <method>call</method> </frame> <frame> <class>org.mozilla.javascript.gen.c1</class> <method>exec</method> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>evaluateScript</method> <line>503</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>processFileSecure</method> <line>425</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>processFile</method> <line>391</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>processSource</method> <line>382</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>processFiles</method> <line>179</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main$IProxy</class> <method>run</method> <line>100</line> </frame> <frame> <class>org.mozilla.javascript.Context</class> <method>call</method> <line>528</line> </frame> <frame> <class>org.mozilla.javascript.ContextFactory</class> <method>call</method> <line>450</line> </frame> <frame> <class>org.mozilla.javascript.tools.shell.Main</class> <method>exec</method> <line>162</line> </frame> <frame> <class>com.ti.ccstudio.apps.internal.scripting.RunScript$1</class> <method>run</method> <line>88</line> </frame> </exception> </record> </log>
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: .
*
Hello,
Instead of using the wild card, try explicitly using the full name of the connection and device like below:
debugSession = debugServer.openSession("Texas Instruments XDS2xx USB Onboard Debug Probe_0/CORTEX_M4_0")
Thanks
ki
Thanks Ki.
I have 2 more question:
1) While using memory.writeWord(page,cmdAddr, cmd)in order to write to particular address location, what would happen if the application
running on the micro controller also writes back to same location. (because of code design)
Example:
I use the writeWord API to write a value X at an address Y
Now if the code (being executed) also writes Z at the same address Y, what would be the final value at address Y?
2) Can these DSS API's access the memory locations across the board, meaning, contents of RAM, SRAM, FLASH etc?
or is it limited to RAM addresses?
Appreciate your help!
Thanks,
-Nikhilesh
1) It depends on the timing. If your code writes Z to address Y after the writeWord API is called, then the final value at address Y would be Z
2) DSS APIs can access any valid memory address specified as writable by the debugger memory map (this assumes that the debugger memory map is configured correctly).
Thanks
ki
Thank you Ki for this information.
I have the follow up questions on the same topic:
In Response to the previous answer of 1) Is there a way to detect that the particular address Y was overwritten by code with Z value, after the Writeword API?
What i mean is, is there a flag or monitoring mechanism (watchpoint) to know that the address Y was updated, based on this assertion i would like to go and write the required value back to Y address. (which is other than Z), am looking at a kind of overriding mechanism.
In Response to the previous answer of 2) I am unable to figure out the debugger memory map option under CCS6.1. Refer the screenshot attached.
Appreciate your time and help.
Thanks,
-Nikhilesh
Nikhilesh Saggere said:In Response to the previous answer of 1) Is there a way to detect that the particular address Y was overwritten by code with Z value, after the Writeword API?
What i mean is, is there a flag or monitoring mechanism (watchpoint) to know that the address Y was updated, based on this assertion i would like to go and write the required value back to Y address. (which is other than Z), am looking at a kind of overriding mechanism.
You can use a conditional data watchpoint to monitor writes to that address and write the required value back when triggered
For more about watchpoints, see slides 9-10 of the Tiva TM4C1294 workshop
http://processors.wiki.ti.com/index.php/CCS_Fundamentals_Workshop#TM4C1294
Nikhilesh Saggere said:In Response to the previous answer of 2) I am unable to figure out the debugger memory map option under CCS6.1
When in a Debug session, Go to 'Tools -> Memory Map' in the CCS Debug perspective
Thanks
ki
Nikhilesh Saggere said:The problem is how do i determine the particular breakpoint/watchpoint is hit?, because i would like to override the value of TEST_VAR_X only if the variable has been updated by code for other than what i have written using DSS.
The default behavior of a data watchpoint (on your target) would be to halt when the watchpoint is triggered (data write to the address). So when you run the target synchronously, as long as you don't have other breakpoints set, when the target.run() API returns because the watchpoint is triggered, you can have your DSS script write to TEST_VAR_X.
Thanks
ki