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.

Seeking the one-shot script that can load and run in CCSv5 Debug mode

I'm using 6678 multi-core DSP with CCSv5. there are several applications running on each core. I should click a mouse button so many times in order to load and run them.

Is there any one-shot script or ways to avoid these activies that make me annoyed.

 

Thx in advance.

  • You can configure what program file to load for each core within the Debug Configuration dialog.

    Open the debug configuration dialog by selecting the "Run | Debug Configurations..." from the main menu. Then select the launch configuration from the left tree within the dialog, click on the "Program" tab in the main page. Now, you can configure what program file to load for each core.

    Regards,
    Patrick 

  • Thanks, Patrick.

    I should have unchecked "Synchronize the properties for all compatible CPUs" option. That was my mistake.

    One more question....What is the way to run each core automatically after auto load for each core. I hope to run each core sequentially automatically such as core#3 -> core#2 -> core#1 -> core#0.

    Thanks in advance.

  • You can create a DSS script that will connect, load, and run the target in the order that you want for each core. Then add this script to the launch configuration.

    Regards,
    Patrick 

  • Thank you for your response.

    I want to keep the well-operated current GUI configuration that can connect and load cores. Um....DSS script....I'm novice for that.

    Would you mind giving the sample code and how to apply it to the current GUI configuration. ^_^

  • Here is an example DSS script (name it startup.js)

    var debugServer = ScriptingEnvironment.instance().getServer("DebugServer.1");
    var arm = debugServer.openSession(".*Cortex.*");
    var dsp = debugServer.openSession(".*C64.*");

    arm.target.connect()
    dsp.target.connect()

    // load and run dsp
    dsp.memory.loadProgram("D:/CCS_Installs/CCS5.4.0.00089/workspace/dsp/Debug/dsp.out")
    dsp.target.runAsynch();

    //TODO: add load and run arm

    Add this startup.js file to the launch configuration. Remember to remove the load program option from your existing launch configuration, this script already load the program for each core.

    Regards,
    Patrick 

  • Thank you so much. Great job.

    I have succeeded auto_run operation.