OK

Fork of mbed-dev by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Fri Mar 18 08:30:10 2016 +0000
Parent:
94:17550cbf442f
Child:
96:12647ac05603
Commit message:
Synchronized with git revision 1f340445d5333b485923beb9a7216fc54a8efeb4

Full URL: https://github.com/mbedmicro/mbed/commit/1f340445d5333b485923beb9a7216fc54a8efeb4/

add hard fault handlers for MultiTech mDot and Dragonfly platforms

Changed in this revision

targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c Show annotated file Show diff for this revision Revisions of this file
targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c	Thu Mar 17 15:45:19 2016 +0000
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c	Fri Mar 18 08:30:10 2016 +0000
@@ -693,6 +693,15 @@
   return 1; // OK
 }
 
+/******************************************************************************/
+/*            Hard Fault Handler                                              */
+/******************************************************************************/
+void HardFault_Handler(void)
+{
+  printf("Hard Fault\n");
+  NVIC_SystemReset();
+}
+
 /**
   * @}
   */
--- 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();
+}
+
 /**
   * @}
   */