Skip to main content
dost
Associate II
July 22, 2016
Solved

HAL STM32L0: DeInit of WWDG

  • July 22, 2016
  • 1 reply
  • 1496 views
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
This topic has been closed for replies.
Best answer by Walid FTITI_O
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-

1 reply

Walid FTITI_O
Walid FTITI_OBest answer
Visitor II
July 22, 2016
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-