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中得到。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值