cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 cube dma memory increment dont work

Arman Ilmak
Senior

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 discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
turboscrew
Senior III

Have you set the bit?

Arman Ilmak
Senior

hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE;

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

turboscrew
Senior III

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?