void main (void)
/* Timeout Value has to be more than 4 */
/* WDOG_UNLOCK: WDOGUNLOCK=0xC520 */
WDOG->UNLOCK = (uint16_t)0xC520u; /* Key 1 */
/* WDOG_UNLOCK : WDOGUNLOCK=0xD928 */
WDOG->UNLOCK = (uint16_t)0xD928u; /* Key 2 */
/* WDOG_32bit Value to Set Reset Delay: */
WDOG->TOVALH = 0;
WDOG->TOVALL = 1000;
WDOG->PRESC = 0x0000; /* Prescaler needs to be set 0 */
/* WDOG_STCTRLH: ??=0,DISTESTWDOG=0,BYTESEL=0,TESTSEL=0,TESTWDOG=0,??=0,STNDBYEN=1,WAITEN=1,STOPEN=1,DBGEN=0,ALLOWUPDATE=1,WINEN=0,IRQRSTEN=0,CLKsrc=0,WDOGEN=1 */
WDOG->STCTRLH = (uint16_t)0x01D1u;
// other code
WDOG->REFRESH = 0xA602;
WDOG->REFRESH = 0xB480;
while doing continuous refresh of watchdog register controller getting reset. wdog has not reached timeout period.
need to know the reasion of reset of controller.
Continuous kick of wdog is permitterd or not ?
share if u have any code for watchdog and kickdog related to cortex M4