Does the embedded JTAG allow system reset?
I've tried two ways, but I'm not convinced that either way works.
The other way is using GEL:
long nResult = debugSession.expression.evaluate("GEL_AdvancedReset(\"System Reset\")");
the other one is DSS:
numReset = debugSession.target.getNumResetTypes();
for (int j = 0; j < numReset; j++)
{
reset = debugSession.target.getResetType(j);
if ( reset.isAllowed() )
{
if ("System Reset".equals(reset.getName()))
{
reset.issueReset();
}
}
}
At least INTC-registers don't seem to change.
Both versions execute without errors.
Like this (the latter version):
connect: Requesting target connect
waitUntil: ENTRY timeout: infinite
log: Target is now connected
waitUntil: RETURN
connect: RETURN
getResetTypes: ENTRY
getResetTypes: RETURN 2
getResetType: ENTRY
getResetType: RETURN com.ti.debug.engine.scripting.ResetType@dd5d08
isAllowed: ENTRY
isAllowed: RETURN true
getName: ENTRY
getName: RETURN System Reset
issueReset: ENTRY
issueReset: Requesting target reset: System Reset
issueReset: RETURN
getResetType: ENTRY
getResetType: RETURN com.ti.debug.engine.scripting.ResetType@106ef07
isAllowed: ENTRY
isAllowed: RETURN false
terminate: ENTRY
terminate: Firing: onSessionTerminating()
Still after running that and then starting CCS 5.3:
EXPMASK_0 0xFFFFFDFF
EXPMASK_1 0xFFFFFFFF
EXPMASK_2 0xFFFFFFFF
EXPMASK_3 0x00CDFFFD
Is it possible at all to give system reset with embedded JTAG without using a soldering iron?
(Connecting some output to reset pin.)
Also CCS 5.3 doesn't give system reset alternative in "Run/Reset"-menu.
With BlackHawk there is the system reset alternative in the CCS 5.3 "Run/Reset"-menu.
If, in case of embedded JTAG, there is no system reset possibility, why does "IsAllowed" return "true"?
The device is "pretty much C6455".
The possibility would be needed to reset f. ex.memory protection in script based testing.
Otherwise loading the program after a failure would cause memory protection exception.