CCS5 DSS例子

// 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 = "xxx/DA.ccxml";
var ddr3_out = "xxx.out";
var dat_file = "xxx.dat";
var core0_out = "xxx.out";
var core1_out = "xxx.out";
var core2_out = "xxx.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 );

debugSession_0 = ds.openSession("Blackhawk USB560-M Emulator, 20-pin JTAG Cable_0","C66xx_0"); 
debugSession_1 = ds.openSession("Blackhawk USB560-M Emulator, 20-pin JTAG Cable_0","C66xx_1"); 
debugSession_2 = ds.openSession("Blackhawk USB560-M Emulator, 20-pin JTAG Cable_0","C66xx_2"); 
debugSession_3 = ds.openSession("Blackhawk USB560-M Emulator, 20-pin JTAG Cable_0","C66xx_3"); 
// connect Target 
debugSession_0.target.connect();
debugSession_1.target.connect();
debugSession_2.target.connect();
debugSession_3.target.connect();

// Reset the target
debugSession_0.target.reset();
debugSession_1.target.reset();
debugSession_2.target.reset();
debugSession_3.target.reset();

// Load the program 
debugSession_0.memory.loadProgram( ddr3_out );

// Run the ddr3_out
debugSession_0.target.run();

// load dat file
debugSession_0.memory.loadData(0,0x80000000,dat_file,59);

// Load the program 
debugSession_0.memory.loadProgram( core0_out );
debugSession_1.memory.loadProgram( core1_out );
debugSession_2.memory.loadProgram( core2_out );

// Run the DSP program
//debugSession_0.target.run();
//debugSession_1.target.run();
//debugSession_2.target.run();
//ds.simultaneous.run(new DebugSession[]{debugSession_0, debugSession_1,debugSession_2}); // Run core 0 1 2
//ds.simultaneous.run(debugSession_0,debugSession_1,debugSession_2);
//ds.simultaneous.runAsynch(); 
ds.simultaneous.run();


Blackhawk USB560-M Emulator, 20-pin JTAG Cable_0和C66xx_0从DA.ccxml中得到。

你可能感兴趣的:(DSP_多核)