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.

DRA821U: CCS Debug

Part Number: DRA821U

Dear Ti expert,

In our application scenario,we use the IPC component to coordinate the R5F cores and we need the different cores works synchronously. 

When we debug the code on the R5F cores with Lauterbach debugger, the debug script would support the SYnch commands group which could realize that the different R5F cores stop and rerun at the same time.

But the CCS debugger could only connect to one of the different cores at a certain moment.I tried the method of suspend router, but I found that it only support the router from core to peripherals.

So if there is a method like a .gel script which could realize the same function of the Lauterbach script?

Thanks and looking forward to your reply.

Best Regards

  • Hi,

    You can write a DSS script to run two cores simultaneously. You can refer the specific response here - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/999187/j721exsomxevm-launching-c7x-and-c6x-on-ccs/3709197#3709197 

    // 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);
    importPackage(Packages.java.io);
    
    dsMCU1_0 = debugServer.openSession( ".*MCU_Cortex_R5_0" );
    dsMCU2_0 = debugServer.openSession( ".*MAIN_Cortex_R5_0_0" );
    dsC66_0 = debugServer.openSession( ".*C66xx_0" );
    dsC7x_0 = debugServer.openSession( ".*C71X_0" );
    
    var core = Array();
    core[0] = dsC66_0;
    core[1] = dsC7x_0;
    
    debugServer.simultaneous.runAsynch(core);

    Save this by the name "run_simulteneous_cores.js" and then load both C6x_0 and C7x_0 in CCS. (but do not run them).

    At this point, in the scripting console, run the below:

    loadJSFile("C:/Users/a0230381/Desktop/ccs/run_simulteneous_cores.js")

    Running this would run both the cores simultaneously.

    You can also re-use the script to run some other set (more than one also works) simultaneously.

    Regards

    Karan