Skip to main content
This topic has been closed for replies.
Javier1
Javier1Best answer
Principal
September 26, 2022

HAL_GETTICK counter will overflow after more than 1,6 months, so i would use it along NVIC_SystemReset() to restart your mcu.

Or if youre more interested in restarting your MCU even if the core got lock up...

Then i would use a IWDG but its counter will overflow after only 32seconds.

hit me up in https://www.linkedin.com/in/javiermuñoz/

3 replies

ST Technical Moderator
September 26, 2022

Hello @GSaw​ ,

You can call NVIC_SystemReset, and use HAL function: HAL_NVIC_SystemReset ().

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Javier1
Javier1Best answer
Principal
September 26, 2022

HAL_GETTICK counter will overflow after more than 1,6 months, so i would use it along NVIC_SystemReset() to restart your mcu.

Or if youre more interested in restarting your MCU even if the core got lock up...

Then i would use a IWDG but its counter will overflow after only 32seconds.

hit me up in https://www.linkedin.com/in/javiermuñoz/
GSaw
GSawAuthor
Associate III
September 26, 2022

Thanks :)