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.

Scripts to contol multiple DSP in parallel

Hi,

CCS3.3 support scripts such as VBScript to control the CCS for one DSP core.

But my customer want to use VBScript to contol multiple DSP in parallel to implements the functions of CCS Parallel Debug Manager, such as, run multiple cores in parallel, halt multiple cores in parallel.

Does anybody know how to implement it?

Thank you very much!

 

  • Hi Brighton,

    There are no CCScripting APIs for this but there are GEL calls (GEL_SyncRun(), GEL_SyncHalt(), etc) for this which you can call from your CCScripting VBScript.

    However, there are DSS APIs for sync operations in case you are interested in moving to DSS.

    Thanks

    ki

  • I have add on question to above. Can you guide me how to run code on individual DSP processors on single target board. I am new to this multiple DSP chips on single target.(There are 3 dm648 chips on single target)

  • Assuming this is for CCS Scripting, you can simply create a scripting object for each DSP.

    Example (in Perl):

    # Declarations and Initializations
    # Create 3 new Code Composer Studio Scripting objects
    my $MyCCScriptingDSP1 = new CCS_SCRIPTING_PERL::CCS_Scripting();
    my $MyCCScriptingDSP2 = new CCS_SCRIPTING_PERL::CCS_Scripting();
    my $MyCCScriptingDSP3 = new CCS_SCRIPTING_PERL::CCS_Scripting();

    There you can use each scripting object separately to control that DSP (open CCS for each DSP, load program for each DSP, etc).

    ki

     

  • Hey thanks for the reply. Do i need to make any configuration in CCS for loading 3 different application on single target board having 3 DSP chips...?How do i verify that code meant for DSP1 is properly loaded to DSP1 on target board and similarly DSP2 AND DSP3...?

    Thanks

  • MANU YADAV said:
    Do i need to make any configuration in CCS for loading 3 different application on single target board having 3 DSP chips...?

    By default, CCS Scripting will use whatever configuration you have setup in the CCS Setup tool. Assuming that you have a good target configuration for your board, you should be fine

    MANU YADAV said:
    How do i verify that code meant for DSP1 is properly loaded to DSP1 on target board and similarly DSP2 AND DSP3...?

    Because you are creating a scripting object for each DSP, you can control which program you are loading to each DSP by using the object associated with that DSP. In the above, I created three objects ($MyCCScriptingDSP1, $MyCCScriptingDSP2, $MyCCScriptingDSP3) , one for each DSP. So to make sure I load a specific program to say the first DSP, I'll use $MyCCScriptingDSP1, which is for the first DSP, and call the ProgramLoad API for it:

    # Load an .out file
    $MyCCScriptingDSP1 -> ProgramLoad($sProgram);

  • Can you share me the info how to configure set up tool for running code on 3 DSP on a single core. Basic req that i should ensure before loading my code,and target configuration on the DM648.Any TI technical ref guide with ur bit of explanation suffice this.

    Thanks a lot

  • I'd recommend you start with existing CCS documentation like the on-line help that comes with CCS and the CCSv3.3 Getting Started Guide (http://focus.ti.com/lit/ug/spru509h/spru509h.pdf). Chapter 3 of the guide discusses the CCS setup tool.

    Thanks

    ki