cancel
Showing results for 
Search instead for 
Did you mean: 

WWDG Reset

raffin
Associate III

I configured the WWDG using cubeMX and the init looks as follow:

  hwwdg.Instance = WWDG;
  hwwdg.Init.Prescaler = WWDG_PRESCALER_8;
  hwwdg.Init.Window = 127;
  hwwdg.Init.Counter = 127;
  hwwdg.Init.EWIMode = WWDG_EWI_ENABLE;
  if (HAL_WWDG_Init(&hwwdg) != HAL_OK)

 The problem is that then i refresh the watchdog on the DefaultTask.

The problem is that the watchdog reset the board before the Default task starts, this is because the init is quite long. Moreover the interrupts doe not fire (maybe during the init of the lan the interrupt are disabled). Is there a way to enable the WWDG only before the DefaultTask starts?

Is it correct to say that with hwwdg.Init.Window = 127 the reset due to an early refresh is NOT enabled?

I use the WWDG and not the IWDG since i need tho stop the watchdog while I am in stop mode.

0 REPLIES 0