Skip to content

Commit 6a5f25b

Browse files
committed
solve the issue of abnormal startup of STM32MP157
1 parent 928e473 commit 6a5f25b

File tree

11 files changed

+2074
-4056
lines changed

11 files changed

+2074
-4056
lines changed

bsp/stm32/libraries/HAL_Drivers/drv_common.c

+2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ void HAL_Delay(__IO uint32_t Delay)
111111
/* re-implement tick interface for STM32 HAL */
112112
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
113113
{
114+
#ifndef SOC_SERIES_STM32MP1
114115
rt_hw_systick_init();
116+
#endif
115117

116118
/* Return function status */
117119
return HAL_OK;

bsp/stm32/libraries/HAL_Drivers/nano/drv_console.c

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ static UART_HandleTypeDef console_uart;
1616

1717
void rt_hw_console_init(void)
1818
{
19-
HAL_UART_DeInit(&console_uart);
2019
#ifdef USART1
2120
if (rt_strcmp(RT_CONSOLE_DEVICE_NAME, "uart1") == 0)
2221
{

0 commit comments

Comments
 (0)