changeset 42:2d99d9290a22

Force reset in case of a hard fault
author Ideenmodellierer
date Sun, 29 Jul 2018 16:46:31 +0200
parents 22864a24973b
children c42c82f73c96
files Small_CPU/Src/stm32f4xx_it_v3.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)
   {
   }