// Konfiguration erstellt mit "F280049_loadProgram_gen.py" am: 24.07.2020 (13:11:50) // 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/Software/F280049/targetConfigs/TMS320F280049_111_noGel.ccxml"; var programToLoad = "C:/SVN/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 ); try { // Open a debug session debugSession1 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_1" ); print("Session 111 - 1 opened."); debugSession2 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_2" ); print("Session 111 - 2 opened."); debugSession3 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_3" ); print("Session 111 - 3 opened."); debugSession4 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_4" ); print("Session 111 - 4 opened."); debugSession5 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_5" ); print("Session 111 - 5 opened."); debugSession6 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_6" ); print("Session 111 - 6 opened."); debugSession7 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_7" ); print("Session 111 - 7 opened."); debugSession8 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_8" ); print("Session 111 - 8 opened."); debugSession9 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_9" ); print("Session 111 - 9 opened."); debugSession10 = debugServer.openSession( "RK_111_Probe", "C28xx_CPU1_10" ); print("Session 111 - 10 opened."); // Options for this debug session debugSession1.options.setBoolean("HaltOnConnect", false); debugSession2.options.setBoolean("HaltOnConnect", false); debugSession3.options.setBoolean("HaltOnConnect", false); debugSession4.options.setBoolean("HaltOnConnect", false); debugSession5.options.setBoolean("HaltOnConnect", false); debugSession6.options.setBoolean("HaltOnConnect", false); debugSession7.options.setBoolean("HaltOnConnect", false); debugSession8.options.setBoolean("HaltOnConnect", false); debugSession9.options.setBoolean("HaltOnConnect", false); debugSession10.options.setBoolean("HaltOnConnect", false); // Connect to the target debugSession1.target.connect(); print("Target 111 - 1 connected."); debugSession2.target.connect(); print("Target 111 - 2 connected."); debugSession3.target.connect(); print("Target 111 - 3 connected."); debugSession4.target.connect(); print("Target 111 - 4 connected."); debugSession5.target.connect(); print("Target 111 - 5 connected."); debugSession6.target.connect(); print("Target 111 - 6 connected."); debugSession7.target.connect(); print("Target 111 - 7 connected."); debugSession8.target.connect(); print("Target 111 - 8 connected."); debugSession9.target.connect(); print("Target 111 - 9 connected."); debugSession10.target.connect(); print("Target 111 - 10 connected."); // Load symbols only debugSession1.symbol.load( programToLoad ); print("Symbols 111 - 1 loaded."); debugSession2.symbol.load( programToLoad ); print("Symbols 111 - 2 loaded."); debugSession3.symbol.load( programToLoad ); print("Symbols 111 - 3 loaded."); debugSession4.symbol.load( programToLoad ); print("Symbols 111 - 4 loaded."); debugSession5.symbol.load( programToLoad ); print("Symbols 111 - 5 loaded."); debugSession6.symbol.load( programToLoad ); print("Symbols 111 - 6 loaded."); debugSession7.symbol.load( programToLoad ); print("Symbols 111 - 7 loaded."); debugSession8.symbol.load( programToLoad ); print("Symbols 111 - 8 loaded."); debugSession9.symbol.load( programToLoad ); print("Symbols 111 - 9 loaded."); debugSession10.symbol.load( programToLoad ); print("Symbols 111 - 10 loaded."); } catch (exception) { print(exception); } // debugServer.stop();