diff Small_CPU/Src/stm32f4xx_it_v3.c @ 42:2d99d9290a22

Force reset in case of a hard fault
author Ideenmodellierer
date Sun, 29 Jul 2018 16:46:31 +0200
parents 5f11787b4f42
children 22a1094545f3
line wrap: on
line diff
--- a/Small_CPU/Src/stm32f4xx_it_v3.c	Sun Jul 29 16:45:37 2018 +0200
+++ b/Small_CPU/Src/stm32f4xx_it_v3.c	Sun Jul 29 16:46:31 2018 +0200
@@ -82,6 +82,7 @@
 void HardFault_Handler(void)
 {
   /* Go to infinite loop when Hard Fault exception occurs */
+  HAL_NVIC_SystemReset(); /* TODO Exception occures during startup and no iwdg is active ==> Call reset till iwdg is added */
   while (1)
   {
   }