Home > other >  STM32F030 USART sending problem
STM32F030 USART sending problem

Time:09-17

With MX building project, please send:

While (__HAL_UART_GET_FLAG (USART1, UART_IT_TC)!=SET);

How to write in STM32F030 programs, thank you!

CodePudding user response:

Have been solved, thank you for your attention,

CodePudding user response:

While (__HAL_UART_GET_FLAG (USART1, UART_IT_TC)!=SET);
See the API documentation, just named is not the same;
Another: the code that cause the CPU feign death

CodePudding user response:

Problems found in the blocking mode under the condition of sending, HAL sent don't need this waiting, can directly cancel waited,
Thank you for attention,
  • Related