importPackage(Packages.com.ti.debug.engine.scripting); importPackage(Packages.com.ti.ccstudio.scripting.environment); importPackage(Packages.java.lang); importPackage(Packages.java.io); importPackage(Packages.com.ti.ccstudio.scripting.environment.FileUtils); print("=== Starting DSS Symbol Reader ==="); try { //Create the Scripting Environment Object var script = ScriptingEnvironment.instance(); print("Accessing scriptingEnvironment..."); var debugServer = script.getServer("DebugServer.1"); print("Debug server acquired."); debugServer.setConfig("NewTargetConfiguration.ccxml"); print("Target configuration set."); var session = debugServer.openSession("Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU1"); print("Session opened for XDS2xx probe."); session.target.connect(); session.memory.writeData(Memory.Page.DATA, 50050, 195, 16) var value = session.memory.readData(Memory.Page.DATA, 50050, 16); print("value") print(value) var value = session.memory.readData(Memory.Page.DATA, 49152, 16); print("value") print(value) print("Finished reading all symbols."); } catch (e) { print("Fatal error: " + e); }