Posted on September 29, 2016 at 15:13
I'm trying to receive serial data using USART1 and DMA in 3 different chunks.
Between I'm setting the buffer size in the DMA (2 bytes, 1 byte, 10 bytes) using the function
set_
dma
_buffer_...
Posted on September 20, 2016 at 21:49Hi, I've been struggling to get interrupt for DMA working. I got it working for USART interrupt. I'm configuring for USART1 and DMA1_Channel5. My problem is that I don't get an interrupt for the DMA. So is ther...
Posted on September 29, 2016 at 17:04Ooops! I thougt there was a problem with my configuration of USART/DMA. It turned out the problem was my own fault later in the code. So my problem is fixed. Sorry for the interrupt.
Posted on September 29, 2016 at 16:32
Just to clarify.
I actually noticed that in the interrupt handler the if statement is'nt fulfilled the second time.
void DMA1_Channel5_IRQHandler(void)
{
if (DMA_GetITStatus(DMA1_IT_TC5))
...
Posted on September 21, 2016 at 09:00About the code, yes I just cut out what I thought was the important stuff. Nevertheless I changed my buffer address to:DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)rx_buffer; I have a declaration further up ...