// Konfiguration erstellt mit "F280049_loadProgram_gen.py" am: 13.05.2020 (07:34:01) // To run this script open the "Scripting Console" under the "View" tab in CCS // use the "loadJSFile " command to load and run this script // For more documentation on scipting have a look at: // file:///C:/ti/ccs920/ccs/ccs_base/scripting/docs/GettingStarted.htm oder // http://software-dl.ti.com/ccs/esd/documents/users_guide/sdto_dss_handbook.html // 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:/SVN_ASCO/Software/F280049/targetConfigs/TMS320F280049_converter1_all.ccxml"; var programToLoad = "C:/SVN_ASCO/Software/F280049/CPU1_RAM/Basis_F280049.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 debugServer = script.getServer( "DebugServer.1" ); // Set the device ccxml debugServer.setConfig( deviceCCXMLFile ); // Open a debug session debugSession1 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_1" ); debugSession2 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_2" ); debugSession3 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_3" ); debugSession4 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_4" ); debugSession5 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_5" ); debugSession6 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_6" ); debugSession7 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_7" ); debugSession8 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_8" ); debugSession9 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_9" ); debugSession10 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_10" ); // Connect to the target debugSession1.target.connect(); debugSession2.target.connect(); debugSession3.target.connect(); debugSession4.target.connect(); debugSession5.target.connect(); debugSession6.target.connect(); debugSession7.target.connect(); debugSession8.target.connect(); debugSession9.target.connect(); debugSession10.target.connect(); // Load the program debugSession1.memory.loadProgram( programToLoad ); debugSession2.memory.loadProgram( programToLoad ); debugSession3.memory.loadProgram( programToLoad ); debugSession4.memory.loadProgram( programToLoad ); debugSession5.memory.loadProgram( programToLoad ); debugSession6.memory.loadProgram( programToLoad ); debugSession7.memory.loadProgram( programToLoad ); debugSession8.memory.loadProgram( programToLoad ); debugSession9.memory.loadProgram( programToLoad ); debugSession10.memory.loadProgram( programToLoad ); // Run the program debugSession1.target.runAsynch(); debugSession2.target.runAsynch(); debugSession3.target.runAsynch(); debugSession4.target.runAsynch(); debugSession5.target.runAsynch(); debugSession6.target.runAsynch(); debugSession7.target.runAsynch(); debugSession8.target.runAsynch(); debugSession9.target.runAsynch(); debugSession10.target.runAsynch(); // Disconnect from the target debugSession1.target.disconnect(); debugSession1.terminate(); debugSession2.target.disconnect(); debugSession2.terminate(); debugSession3.target.disconnect(); debugSession3.terminate(); debugSession4.target.disconnect(); debugSession4.terminate(); debugSession5.target.disconnect(); debugSession5.terminate(); debugSession6.target.disconnect(); debugSession6.terminate(); debugSession7.target.disconnect(); debugSession7.terminate(); debugSession8.target.disconnect(); debugSession8.terminate(); debugSession9.target.disconnect(); debugSession9.terminate(); debugSession10.target.disconnect(); debugSession10.terminate(); // Open a debug session debugSession11 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_1" ); debugSession12 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_2" ); debugSession13 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_3" ); debugSession14 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_4" ); debugSession15 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_5" ); debugSession16 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_6" ); debugSession17 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_7" ); debugSession18 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_8" ); debugSession19 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_9" ); debugSession20 = debugServer.openSession( "RK_121_Probe", "C28xx_CPU1_10" ); // Connect to the target debugSession11.target.connect(); debugSession12.target.connect(); debugSession13.target.connect(); debugSession14.target.connect(); debugSession15.target.connect(); debugSession16.target.connect(); debugSession17.target.connect(); debugSession18.target.connect(); debugSession19.target.connect(); debugSession20.target.connect(); // Load the program debugSession11.memory.loadProgram( programToLoad ); debugSession12.memory.loadProgram( programToLoad ); debugSession13.memory.loadProgram( programToLoad ); debugSession14.memory.loadProgram( programToLoad ); debugSession15.memory.loadProgram( programToLoad ); debugSession16.memory.loadProgram( programToLoad ); debugSession17.memory.loadProgram( programToLoad ); debugSession18.memory.loadProgram( programToLoad ); debugSession19.memory.loadProgram( programToLoad ); debugSession20.memory.loadProgram( programToLoad ); // Run the program debugSession11.target.runAsynch(); debugSession12.target.runAsynch(); debugSession13.target.runAsynch(); debugSession14.target.runAsynch(); debugSession15.target.runAsynch(); debugSession16.target.runAsynch(); debugSession17.target.runAsynch(); debugSession18.target.runAsynch(); debugSession19.target.runAsynch(); debugSession20.target.runAsynch(); // Disconnect from the target debugSession11.target.disconnect(); debugSession11.terminate(); debugSession12.target.disconnect(); debugSession12.terminate(); debugSession13.target.disconnect(); debugSession13.terminate(); debugSession14.target.disconnect(); debugSession14.terminate(); debugSession15.target.disconnect(); debugSession15.terminate(); debugSession16.target.disconnect(); debugSession16.terminate(); debugSession17.target.disconnect(); debugSession17.terminate(); debugSession18.target.disconnect(); debugSession18.terminate(); debugSession19.target.disconnect(); debugSession19.terminate(); debugSession20.target.disconnect(); debugSession20.terminate(); // Open a debug session debugSession21 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_1" ); debugSession22 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_2" ); debugSession23 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_3" ); debugSession24 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_4" ); debugSession25 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_5" ); debugSession26 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_6" ); debugSession27 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_7" ); debugSession28 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_8" ); debugSession29 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_9" ); debugSession30 = debugServer.openSession( "RK_131_Probe", "C28xx_CPU1_10" ); // Connect to the target debugSession21.target.connect(); debugSession22.target.connect(); debugSession23.target.connect(); debugSession24.target.connect(); debugSession25.target.connect(); debugSession26.target.connect(); debugSession27.target.connect(); debugSession28.target.connect(); debugSession29.target.connect(); debugSession30.target.connect(); // Load the program debugSession21.memory.loadProgram( programToLoad ); debugSession22.memory.loadProgram( programToLoad ); debugSession23.memory.loadProgram( programToLoad ); debugSession24.memory.loadProgram( programToLoad ); debugSession25.memory.loadProgram( programToLoad ); debugSession26.memory.loadProgram( programToLoad ); debugSession27.memory.loadProgram( programToLoad ); debugSession28.memory.loadProgram( programToLoad ); debugSession29.memory.loadProgram( programToLoad ); debugSession30.memory.loadProgram( programToLoad ); // Run the program debugSession21.target.runAsynch(); debugSession22.target.runAsynch(); debugSession23.target.runAsynch(); debugSession24.target.runAsynch(); debugSession25.target.runAsynch(); debugSession26.target.runAsynch(); debugSession27.target.runAsynch(); debugSession28.target.runAsynch(); debugSession29.target.runAsynch(); debugSession30.target.runAsynch(); // Disconnect from the target debugSession21.target.disconnect(); debugSession21.terminate(); debugSession22.target.disconnect(); debugSession22.terminate(); debugSession23.target.disconnect(); debugSession23.terminate(); debugSession24.target.disconnect(); debugSession24.terminate(); debugSession25.target.disconnect(); debugSession25.terminate(); debugSession26.target.disconnect(); debugSession26.terminate(); debugSession27.target.disconnect(); debugSession27.terminate(); debugSession28.target.disconnect(); debugSession28.terminate(); debugSession29.target.disconnect(); debugSession29.terminate(); debugSession30.target.disconnect(); debugSession30.terminate(); // debugServer.stop();