Part Number: TMS320F28379D
Dear experts,
our customers met a question below
Hi I am using a TMS320F28379D board and attempting to learn how to use the Debug Server Scripting (DSS) feature to automate some tests. I tried loading a JS file from command prompt for an example program. This program blinks the led 20 times before calling the exit() function. When I ran the test, the led blinks 20 times as expected. However, I do not see any indications of termination from the command line. Is this expected? I have attached an image of what I see on the command line. I will also attach my JS file. I should probably mention that a log file is produced, but I am unable to render it in Edge and Chrome, it will only show a blank page. Do you know what could be a possible reason for this?
importPackage(Packages.com.ti.debug.engine.scripting); importPackage(Packages.com.ti.ccstudio.scripting.environment); importPackage(Packages.java.lang); // Modify the following two variables to match your environment. Use forward slashes and full paths. // (non-windows users: instead of ~/ use the full path to your home folder) // The first variable should match the argument passed to setpath.bat // The second should be the path for the DSS-Workshop folder var ccsInstallDir = "C:/ti/ccs1011/ccs/"; var dssWorkshopDir = "C:/ti/CCS-Workshops/DSS-Workshop/"; // The necessary files var logFile = dssWorkshopDir + "/lab1/log.xml"; var logFileStylesheet = ccsInstallDir + "/ccs_base/scripting/examples/DebugServerExamples/DefaultStylesheet.xsl"; var deviceCCXMLFile = dssWorkshopDir + "/target-config/f28379d_xds100.ccxml"; var programToLoad = "C:/ti/c2000/C2000Ware_2_01_00_00/device_support/f2837xd/examples/cpu1/blinky/cpu01/ccs/CPU1_RAM/blinky_cpu01.out"; var scriptEnv = ScriptingEnvironment.instance(); scriptEnv.traceBegin(logFile, logFileStylesheet); scriptEnv.traceSetConsoleLevel(TraceLevel.INFO); scriptEnv.traceSetFileLevel(TraceLevel.ALL); var debugServer = scriptEnv.getServer("DebugServer.1"); debugServer.setConfig(deviceCCXMLFile); var debugSession = debugServer.openSession("Texas Instruments XDS100v2 USB Debug Probe_0/C28xx_CPU1"); debugSession.target.connect(); debugSession.memory.loadProgram(programToLoad); debugSession.target.run(); debugServer.stop(); scriptEnv.traceEnd();



Best regards,
William