Tool/software: Code Composer Studio
Hello,
I would like to send a system reset command (like the one the can be done manually from the toolbar) from a debug script (JS console).
I have seen someone suggested something like the syntax below but it does not seem to work - i get numReset=3 but all read from getResetType return nothing.
(working on the TDA2xx)
numReset = debugSession_a15.target.getNumResetTypes();
for ( j = 0; j < numReset; j++)
{
reset = debugSession_a15.target.getResetType(j);
if ( reset.isAllowed() )
{
if ("System Reset".equals(reset.getName()))
{
reset.issueReset();
}
}
}
Can you help me with the correct syntax for system reset and make it work?
Thanks