cancel
Showing results for 
Search instead for 
Did you mean: 

How to properly restart UART+DMA receiver - because it stops receiving characters ?

bully
Senior

Hello,

I have written UART+DMA receiving code under CubeIDE. After few days, receive process stops receiving characters from UART. I can confirm with the oscilloscope that the GSM module is responding properly to At queries, but nothing is received in the code.

Has anyone spotted something similar?

How to properly restart UART (it seems like a possible solution for now) ?

Thanks in advance,

regards,

bully.

2 REPLIES 2

Do you handle properly the UART errors?

JW

CARHERO
Associate III

Hello,

I recommend reviewing this UART-DMA code. It may help to robust your DMA communication.

https://github.com/MaJerle/stm32-usart-uart-dma-rx-tx