From 05d15b11629244dd54bb2ce1610c73343288bc57 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 12 Dec 2021 23:45:29 -0500 Subject: [PATCH] [stm32][drv_common] add LOW_E for Error_Handler --- bsp/stm32/libraries/HAL_Drivers/drv_common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_common.c b/bsp/stm32/libraries/HAL_Drivers/drv_common.c index 87707d68ea..5ff50e5f40 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_common.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_common.c @@ -16,8 +16,12 @@ #include "drv_usart_v2.h" #else #include "drv_usart.h" -#endif -#endif +#endif /* RT_USING_SERIAL */ +#endif /* RT_USING_SERIAL_V2 */ + +#define DBG_TAG "drv_common" +#define DBG_LVL DBG_INFO +#include #ifdef RT_USING_FINSH #include @@ -115,6 +119,7 @@ void _Error_Handler(char *s, int num) { /* USER CODE BEGIN Error_Handler */ /* User can add his own implementation to report the HAL error return state */ + LOG_E("Error_Handler at file:%s num:%d", s, num); while (1) { }