Skip to main content
bully
Senior
May 16, 2021
Question

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

  • May 16, 2021
  • 2 replies
  • 610 views

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.

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 17, 2021

Do you handle properly the UART errors?

JW

CARHERO
Associate II
May 17, 2021

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