stm32f407 usart 单步调试时数据发送成功,但板子连续跑发送出来的就全是零了

2025-04-29 07:24:03
推荐回答(1个)
回答1:

/* Place your implementation of fputc here */
/* e.g. write a character to the USART */
USART_SendData(DEBUG_USART, (uint8_t) ch);

/* Loop until the end of transmission */
while (USART_GetFlagStatus(DEBUG_USART, USART_FLAG_TC) == RESET)
{}

有做第二条语句吗