cancel
Showing results for 
Search instead for 
Did you mean: 

HAL STM32L0: DeInit of WWDG

dost
Associate II
Posted on July 22, 2016 at 10:28

Hi,

since the WWDG of the STM32L0 series can be deactivated only by a hardware reset

I don't understand the purpose of the function

HAL_WWDG_DeInit

in the HAL (v1.7.0).

The function and its description suggest, that I can call it to stop the WWDG.

Best regards,

Markus

#hal #stm32l0 #wwdg
1 ACCEPTED SOLUTION

Accepted Solutions
Walid FTITI_O
Senior II
Posted on July 22, 2016 at 16:03

Hi dost.markus,

HAL_WWDG_DeInit is a deInitialization function of WWDG peripheral which just reset the instance's configuration and change the peripheral state to ready for use.  Once enabled, the watchdog can be disabled only after reset. This is a specification to maintain the real functionality of WWDG, to maintain downcouting until reset occurs. Otherwise, the downcouter can be reloaded in case its value is lower than the window register and greater than 0x3F.

-Hannibal-

View solution in original post

1 REPLY 1
Walid FTITI_O
Senior II
Posted on July 22, 2016 at 16:03

Hi dost.markus,

HAL_WWDG_DeInit is a deInitialization function of WWDG peripheral which just reset the instance's configuration and change the peripheral state to ready for use.  Once enabled, the watchdog can be disabled only after reset. This is a specification to maintain the real functionality of WWDG, to maintain downcouting until reset occurs. Otherwise, the downcouter can be reloaded in case its value is lower than the window register and greater than 0x3F.

-Hannibal-