apache / mynewt-core

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
825 stars 369 forks source link

STM32 Watchdog fixes #3235

Closed kasjer closed 4 months ago

kasjer commented 4 months ago

This change updates all BSP to have WATCHDOG_INTERVAL value that is in range. Default 30s is out of range for all STM32 devices.

hal_reset_reason() function fixed for Watchdog and POR/BOR. Order of check for reset reason is updated so all cases will be reported. It was common that POR or BOR was never reported in favor of Reset Pin. Watchdog was also not reported for Independent watchdog that was used.