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/PROCESSOR-SDK-TDAX: Debugging Automation - How to get Active Session name?

Part Number: PROCESSOR-SDK-TDAX


Tool/software: Code Composer Studio

Hi.

Do we have a function that automatically get the session name?

Im running multicore, and i need a script that dump a binary data from a symbol, but my problem is I couldn't find a API that returns an active session name. 

if there are alternative, please help to let me know.

var cores = ['core1', 'core2', 'core3']

//I need a function that automtically get the SessionName

var mySession = GetSessionByName(cores[i]);
print(mySession);

function dump(){

var Arrayaddr = mySession.symbol.getAddress("Var_array");

var ArraySize = mySession.expression.evaluate("sizeof(Var_array)"); 

mySession.memory.saveBinary(Arrayaddr, 0, ArraySize, Dump_Filetxt);

}

Thanks!

Jess

  • Hi Jess,
    If I understand correctly - in your example, there already exists three active debug session (one for each core (core1, core2, core3) ) and you want to be able to get the handle to the debug session by referencing the core name?

    Thanks
    ki
  • Hi Ki,

    for my requirements, i have three cores, but debug session should be active only one core at a time.
    currently im using GetSessionByName, but this API needs to change the parameter each time i need to change to other core.

    do you have any idea How can I automate this one so that when i change to other core i dont need to edit the script?

    Thanks!
    Jessie
  • Jes Ortiz said:
    do you have any idea How can I automate this one so that when i change to other core i dont need to edit the script?

    Without knowing much details about your automation environment, I can only speculate. But what it sounds like you want to do is to be able to run a DSS script which connects to one core of a multi-core device and run some automation (load program, run ,etc). And which core is used can change. What I would do is have it so that you can pass a parameter to your DSS script - the parameter being the core you want to automate. Your script would simply pass this parameter to the openSession call. That way the script does not have to be modified. Am I on the right track here?

    ki