AnsweredAssumed Answered

SWT_0 on MPC5746C is not doing the reset

Question asked by Mohamed Hedi BASLY on Aug 23, 2018
Latest reply on Sep 24, 2018 by Mohamed Hedi BASLY



I'm currently working on the internal watchdog timer, iwant to perform an internal reset request when timeout is reached.

i configured my SWT_0 as follows:


// Unlock SW configuration bits
SWT_0.SR.B.WSC = 0xC520;
SWT_0.SR.B.WSC = 0xD928;


// Wait for soft-lock bit to be cleared

while (SWT_0.CR.B.SLK == 0x1);


// Write Timeout Period
SWT_0.TO.B.WTO = TimeOutValue; // 0x190


// Enable Internal WDG
SWT_0.CR.B.WEN = 1U;


i'm not doing a timeout reload on my code but the SWT_0 is not doing resets, am i missing some thing.


Thanks for help.