You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "kasjer (via GitHub)" <gi...@apache.org> on 2024/05/18 15:12:41 UTC
[PR] stm32/hal_watchdog: Fix timeout calculations [mynewt-core]
kasjer opened a new pull request, #3223:
URL: https://github.com/apache/mynewt-core/pull/3223
All STM32 devices use LSI for watchdog functionality. LSI frequency varies between MCUs and it's approximation is define by LSI_VALUE in stm32xxx_hal_conf.h.
Code was assuming 32768 which is ok for devices that have LSI rate at 30kHz.
Some device has 37kHz others 40kHz it those cases calculated time could be too much off resulting in reset by watchdog.
Now code uses LSI_VALUE adding 10% to avoid cases when LSI runs faster then nominal.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] stm32/hal_watchdog: Fix timeout calculations [mynewt-core]
Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer merged PR #3223:
URL: https://github.com/apache/mynewt-core/pull/3223
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org