t
Fork of mbed-dev by
Diff: targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c
- Revision:
- 95:75b7d1f8d36d
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
diff -r 17550cbf442f -r 75b7d1f8d36d targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c --- a/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c Thu Mar 17 15:45:19 2016 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c Fri Mar 18 08:30:10 2016 +0000 @@ -694,6 +694,15 @@ return 1; // OK } +/******************************************************************************/ +/* Hard Fault Handler */ +/******************************************************************************/ +void HardFault_Handler(void) +{ + printf("Hard Fault\n"); + NVIC_SystemReset(); +} + /** * @} */