-
When I used Arduino Uno R:3 before, R3 could automatically restart when there was an unexpected situation in the program, but now STM32 will only crash and get stuck there, is there any way |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @CJT1111 Or redefine this to call Arduino_Core_STM32/cores/arduino/stm32/stm32_def.h Lines 138 to 142 in 586319c Or redefine some exception handler example for a STM32G4: which fallback to this: |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will look at the first example and do a restart function in whil, but please do not close the problem, I will return to this post after experimenting. |
Beta Was this translation helpful? Give feedback.
Hi @CJT1111
you can have a look to this library:
https://github.com/stm32duino/Arduino_Core_STM32/tree/main/libraries/IWatchdog
Or redefine this to call
NVIC_SystemReset();
Arduino_Core_STM32/cores/arduino/stm32/stm32_def.h
Lines 138 to 142 in 586319c
Or redefine some exception handler example for a STM32G4:
Arduino_Core_STM32/system/Drivers/CMSIS/Device/ST/STM32G4xx/Source/Templates/gcc/startup_stm32g471xx.s
Lines 253 to 283 in 586319c