Hi All,
I am working with my project via dss.
My text debug server for JavaScript below
// Import the DSS packages into our namespace to save on typing
importPackage(Packages.com.ti.debug.engine.scripting)
importPackage(Packages.com.ti.ccstudio.scripting.environment)
importPackage(Packages.java.lang)
// Configurable Parameters
var deviceCCXMLFile = "c:/Users/Borovikov_O/ikbo_dsp/soft/conf/k10sv.ccxml";
var programToLoad = "c:/Users/Borovikov_O/ikbo_dsp/app/debug/dsp.out";
// Create our scripting environment object - which is the main entry point into any script and
// the factory for creating other Scriptable ervers and Sessions
var script = ScriptingEnvironment.instance();
// Create a debug server
var ds = script.getServer( "DebugServer.1" );
// Set the device ccxml
ds.setConfig( deviceCCXMLFile );
// Open a debug session
debugSession1 = ds.openSession("SEED XDS560V2 USB Emulator/C66xx_0");
debugSession2 = ds.openSession("SEED XDS560V2 USB Emulator/C66xx_1");
debugSession3 = ds.openSession("SEED XDS560V2 USB Emulator/C66xx_2");
//connect with CPU
debugSession1.target.connect();
debugSession2.target.connect();
debugSession3.target.connect();
// Load the program
try {
debugSession1.memory.loadProgram(programToLoad);
} catch(ex) {
quit();
}
// my Attempt breakpoints
var my_str_bp = debugSession1.symbol.getAddress("_init");
var bp1 = debugSession1.breakpoint.add(my_str_bp);
try {
var dsp_setup_str = debugSession1.symbol.getAddress("_attemptCores");
print(dsp_setup_str);
var bp2 = debugSession1.breakpoint.add(dsp_setup_str);
}catch(ex) {
quit();
}
// Run the program
debugSession1.target.run();
If I invoke this script from Scripting Console of CCS - it's right of the works
But if I attempt invoke this script from dss - I receive next message
c:\Users\Borovikov_O\ikbo_dsp\app\debug>c:\ti\ccsv5\ccs_base\scripting\bin\dss -dss.debug DebugServer01.js
Loaded FPGA Image: C:\ti\ccsv5\ccs_base\common\uscif\dtc_top.jbc
It is reaction onto last line in the script:
debugSession1.target.run();
Where am I making a mistake?
Thank
Oleg