Watchdog over ~22 seconds on STM303RE
Hi,
Looks like I cannot get the wd over a ~22 seconds watch time .
I would like the watchdog to bark every 60 seconds or more.
The 303 header file specify the reload max 0xFFF and as well the window,
though they are 32bit values .
Also the max prescaler is IWDG_PRESCALER_256.
How do I get over 24 seconds barrier. I tought that this would work.
extern SystemCoreClock // is 80Mhz
Prescaller = 256.
Seconds = 60;
then
uint32_t reload = seconds * (SystemCoreClock / 256);
hiwdg.Instance = IWDG;
hiwdg.Init.Window = reload-1;
hiwdg.Init.Prescaler = IWDG_PRESCALER_256;
hiwdg.Init.Reload = reload;
