Software Watchdog Timer does not perform reset in SPC58
I configured the SWT to Generate an interrupt on an initial time-out, reset on a second consecutive time-out.
The interrupt is well raised on the initial time-out.
The problem is that the reset is not occurred in the next time-out.
here the initialisation sequence of SWT :
/* Disable Software Lock */
SWT_2->SR.B.WSC = 0xC520U;
SWT_2->SR.B.WSC = 0xD928U;
/* Wait until Software Lock is disabled */
while (1U == SWT_2->CR.B.SLK) {/* Empty while */}
/* disable the SWT */
SWT_2->CR.B.WEN = 0U;
SWT_2->CR.B.FRZ = 0U;
SWT_2->CR.B.SMD = 0U;
SWT_2->CR.B.WND = 0U;
SWT_2->CR.B.STP = 1U;
SWT_2->CR.B.RIA = 0U;
SWT_2->IR.B.TIF = 1U;
SWT_2->TO.B.WTO = 0x00088B80U;
/* Enable the SWT */
SWT_2->CR.B.WEN = 1U;
I tried also Generate a reset on a time-out(without interrupt) but also the CPU does not reset
PS: To have the time out I'm in empty while(1) {};
I missed something in configuration ? Thank you for your help
