如题,在常规串口调试助手调试有该bug:
注释掉board.c函数rt_hw_console_getchar(void)中10ms延时,如下:
#ifdef RT_USING_FINSH
char rt_hw_console_getchar(void)
{
/* Note: the initial value of ch must < 0 */
int ch = -1;
if (__HAL_UART_GET_FLAG(&UartHandle, UART_FLAG_RXNE) != RESET)
{
ch = UartHandle.Instance->DR & 0xff;
}
else
{
;//rt_thread_mdelay(10);//注释本条代码
}
return ch;
}
#endif