Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS: system reset from debug script

$
0
0

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


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>