SLAU320AJ July 2010 – May 2021
Reference function: ExecutePOR
Sometimes it is required to reset the target device while under JTAG control. It is recommended that a reset be performed before programming or erasing the flash memory of the target device. When a reset has been performed, the state of the target CPU is equivalent to that after an actual device power up. The following flow is used to force a power-up reset.
IR_SHIFT("IR_CNTRL_SIG_16BIT") | ||
DR_SHIFT16(0x2C01) | : Apply Reset | |
DR_SHIFT16(0x2401) | : Remove Reset | |
ClrTCLK | ||
SetTCLK | ||
ClrTCLK | ||
SetTCLK | ||
ClrTCLK | ||
IR_SHIFT("IR_ADDR_CAPTURE") | ||
SetTCLK | ||
The target CPU is now reset; the PC points to the start address of the user program, which is the address pointed to by the data stored in the reset vector memory location 0xFFFEh and all registers are set to their respective power-up values. | ||
To avoid an undesired reset, the target device's watchdog timer must now be disabled by writing 0x5A80 to the device’s Watchdog Timer Control Register. WriteMem() can be used for this register access. | ||
Unless WriteMem() was used to halt the watchdog timer, ReleaseCPU() needs to be called now. |