cancel
Showing results for 
Search instead for 
Did you mean: 

USART DMA Problem

Slh
Senior

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

2 REPLIES 2
TDK
Guru

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".

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)