配置STM32CubeMX时,使用串口1打印信息,配置完成一直不进入main函数; 最后问题出现在board.c文件 static int uart_init(void)函数默认使用串口2,改成串口1就好了