Tool/software: Code Composer Studio
I have a big modular converter with 180 Piccolo F280049. For programming and debugging I have 18 XDS110. Each XDS110 is connected via JTAG chain to 10 microcontrollers. All the controllers use the same software. So I use java script in the Code Composer Debug Server Scripting (Scripting Console) to load the programms.
At the beginning I used the following java script:
debugSession1 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_1" ); debugSession1.target.connect(); debugSession1.memory.loadProgram( programToLoad ); debugSession1.target.runAsynch();
This worked for 10, 20 or 30 devices without a problem. But I noticed that the becomes slower and slower, when I increase the number of devices.
So I added 2 lines:
debugSession1.target.disconnect(); debugSession1.terminate();
Now it takes approximately 10 minutes to programm 90 devices. Thats totally okay.
The problem is now, that I can't see any informations of my converters any more. So my first question is: How can I load symbols and connect to a running device via Debug Server Scripting?
I found something like:
debugSession1.Symbol.load( programToLoad );
But that wasn't working.
By the side there is a second question: How can I output text out of my java script to the console window in CCS?
I tried:
var script = ScriptingEnvironment.instance();
// "traceWrite"
script.traceSetConsoleLevel(TraceLevel.ALL)
script.traceWrite("TEST traceWrite!")
// "println"
System.out.println( "TEST println!" );
But nothing was working.





