cancel
Showing results for 
Search instead for 
Did you mean: 

How do I restart my MCU every 1 hour from software? (F103CBT6)

GSaw
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

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.

we dont need to firmware by ourselves, lets talk

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Javier1
Principal

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.

we dont need to firmware by ourselves, lets talk

Thanks :)