cancel
Showing results for 
Search instead for 
Did you mean: 

UART with DMA mode

muhammad
Associate II
Posted on June 16, 2012 at 15:32

hi 

everyone

need help regarding UART with DMA mode,

i am using STM32F407 Discovery Board,

i want to configure UART4 with DMA, and want it to generate interrupt when DMA completes filling the memory. 

so should i configure the UART4's interrupt initializations also or only DMA interrupt initializations. I've attached my code. 

any help will be appreciated a lot. 

#selective-cut-n-paste #uart-usart-dma-interrupt
22 REPLIES 22
khandaynial_2000
Associate II
Posted on July 24, 2016 at 21:12

hi Clive1

I am using DMA on uart4 and code is runing perfectly but there is a problem i can fatch data from dma buffer only when it have filled by 16 bytes . in my application i need to fatch data from buffer byte by byte please help as soon as possible 

Posted on July 25, 2016 at 03:24

You should probably consider just using an interrupt (IRQ) for RXNE to manage the bytes as they arrive, 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
khandaynial_2000
Associate II
Posted on July 25, 2016 at 09:32

I am reading data from multiple devices and each device can send its data on same time so by using Interrupt i will again i miss data .