Skip to content

Commit ba2a974

Browse files
committed
add hard fault handlers for MultiTech mDot and Dragonfly platforms
1 parent 6bd3caa commit ba2a974

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,15 @@ uint8_t SetSysClock_PLL_HSI(void)
693693
return 1; // OK
694694
}
695695

696+
/******************************************************************************/
697+
/* Hard Fault Handler */
698+
/******************************************************************************/
699+
void HardFault_Handler(void)
700+
{
701+
printf("Hard Fault\n");
702+
NVIC_SystemReset();
703+
}
704+
696705
/**
697706
* @}
698707
*/

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,15 @@ uint8_t SetSysClock_PLL_HSI(void)
694694
return 1; // OK
695695
}
696696

697+
/******************************************************************************/
698+
/* Hard Fault Handler */
699+
/******************************************************************************/
700+
void HardFault_Handler(void)
701+
{
702+
printf("Hard Fault\n");
703+
NVIC_SystemReset();
704+
}
705+
697706
/**
698707
* @}
699708
*/

0 commit comments

Comments
 (0)