Skip to main content
Arman Ilmak
Senior
March 1, 2020
Question

stm32 cube dma memory increment dont work

  • March 1, 2020
  • 3 replies
  • 850 views

Hey guys.

I generated a cube uart transmit receive dma but in case of receive only the first byte of my buffer is overwritten and memory wont increment.

Whats the problem?

This topic has been closed for replies.

3 replies

turboscrew
Senior III
March 1, 2020

Have you set the bit?

Arman Ilmak
Senior
March 1, 2020

hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE;

yes.and is uart-msp init dma memory increment is enabled.

turboscrew
Senior III
March 1, 2020

You have the right transfer count set? Circular or non-circular?

Does the UART keep DMA-requests coming? How is UART idle interrupt handled, and does it exist in your chip?

Are there situations where the UART and/or DMA is reconfigured?

Have you checked for possible errors in DMA and UART status registers?