Skip to main content
Slh
Senior
April 14, 2022
Question

USART DMA Problem

  • April 14, 2022
  • 2 replies
  • 879 views

I' using USART1 to send and receive DMA with a module. When I configure DMA for one of TX or RX, it works fine. but when I configure it for both TX and RX, in RX-Buffer I have '\0' character in second position.

for example the receive buffer is so:

"A\0T+CFUN=1"

Thanks

This topic has been closed for replies.

2 replies

TDK
April 14, 2022

What are you expecting in the receive buffer instead?

What micro?

How are you verifying what is in the receive buffer exactly?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Slh
SlhAuthor
Senior
April 19, 2022

Hi,

"What are you expecting in the receive buffer instead?"

"AT+CFUN=1" instead of "A\0T+CFUN=1"

"What micro?"

STM32F779

"How are you verifying what is in the receive buffer exactly?"

With Debug tools (Read it in "Variables" section) in STM32CubeIDE (not terminal)