Skip to main content
Son, Dong-Seong
Associate III
June 7, 2023
Solved

About Data transmit with Usart1 using DMA

  • June 7, 2023
  • 1 reply
  • 1208 views

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.

This topic has been closed for replies.
Best answer by Pavel A.

use fflush()

1 reply

Pavel A.
Pavel A.Best answer
June 7, 2023

use fflush()