cancel
Showing results for 
Search instead for 
Did you mean: 

About Data transmit with Usart1 using DMA

Son, Dong-Seong
Associate III

Hi.

I am using STM32WL55.

I set USART1 with DMA tx and DMA rx.

I tried to transmit some data as follows.

 printf("[*] Program Ver 0.2.0.0\r\n");

 printf("\r\n");

 printf("Net> ");

"[*] Program Ver 0.2.0.0\r\n" and "\r\n" are transmitted.

but "Net> " is displayed on terminal.

If you change "Net> " to "Net> \r\n" and send it, it will be transmitted normally.

What's the problem.

How can I fix it.

Please, let me know how to resolve the problem.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Evangelist III
1 REPLY 1
Pavel A.
Evangelist III

use fflush()