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: How to automate loading of script in scripting console?

Tool/software: Code Composer Studio

I created a script to automatically open CCS from another application for debugging purposes. However I have Issue of how to automatically load a script in the scripting console.

The script that will be loaded in the scripting console contains a function "dump()" to automatically dump data a binary data from a symbol when the debugger is on halt.

Do we have any available API in CCS to automatically load script in scripting console?

  • Hi Jes,

    The Scripting Console command "loadJSFile" has two parameters. The first is required (the script to load), the second parameter is optional. It is a boolean if set to true, will auto-load the file the next time the Scripting Console is opened

    js:> help loadJSFile

    Description: Load a JavaScript file or all the JavaScript files in the directory. Example: loadJSFile c:\myDirectory\myJavaScript.js

    Syntax: loadJSFile(file,store)

    Arguments:

     file - the JavaScript file or a directory.

     store - [optional] true, store the file(s) to the preference, the script will auto reload the next time the view is open.

  • Hi Ki,

    Is it possible to call the loadJSFile function from my script so that i dont need to call this in the scripting console?

    Regards,
    Jessie
  • What is your desired automation flow, in detail? Do you have a DSS script that you run from the command-line, which launches the CCS GUI? And then you want that same script to load another DSS js file in the Scripting Console?