Other Parts Discussed in Thread: TMS320C6678, CCSTUDIO
Hi All,
I don't know precisely whom to address with my question about dss.
I work with TMS320C6678 onto Windows via CCS5 and SEED-XDS560v2 USB Emulator.
I used for debugging my project dss, script 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("dspLocalReset");
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
try {
debugSession1.target.run();
} catch(ex) {
quit();
}
If I run my script via Scripting Console without preliminary start my project I have this

If I run my script after run my project (and after unloading project from CCS) I have this
(it's right work)
If I run my script without CCS I have this
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
Exit from dss is going on here
debugSession1.target.run();
It's don't work - catch(ex)
Where my errors?
Thank
Oleg

