This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AM4377: Debug Server Scripting: How to get the command line parameter into the loadProgram.js file

Part Number: AM4377
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hi,

I am new to Debug Server Scripting. I have loadProgram which is working. But the ccxml and the .out are static values. 

// 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 = "Configuration.ccxml";
var programToLoad = "/flash_tool.out";

Please let me know how we can make it dynamic value, I want to pass it as command line paramter

C:\ti\ccsv6\ccs_base\scripting\bin\dss.bat loadprogram.js ccxml out

So that in my loadprogram.js I can set it

var deviceCCXMLFile=ccxml

var programToLoad=out

Regards,

Dhanya