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