comparison 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
comparison
equal deleted inserted replaced
41:22864a24973b 42:2d99d9290a22
80 * @retval None 80 * @retval None
81 */ 81 */
82 void HardFault_Handler(void) 82 void HardFault_Handler(void)
83 { 83 {
84 /* Go to infinite loop when Hard Fault exception occurs */ 84 /* Go to infinite loop when Hard Fault exception occurs */
85 HAL_NVIC_SystemReset(); /* TODO Exception occures during startup and no iwdg is active ==> Call reset till iwdg is added */
85 while (1) 86 while (1)
86 { 87 {
87 } 88 }
88 } 89 }
89 90