2020-03-01 12:29 AM
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?
2020-03-01 01:15 AM
Have you set the bit?
2020-03-01 02:04 AM
hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE;
yes.and is uart-msp init dma memory increment is enabled.
2020-03-01 09:10 AM
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?