AnsweredAssumed Answered

not getting DMA interrupts for some reason

Question asked by chichvarin.john on May 15, 2012
Latest reply on May 15, 2012 by chichvarin.john
i've faced a couple of problems, trying to launch a MT9D111 camera along with STM32F217ZG microcontroller through DCMI interface.
 I've got all the interrupts from DCMI, but i can't catch any interrupt from DMA, although in the debugger window i can see that it is writing some thing into the buffer. May be you have seen this before. What can cause such a behaviour. I'm adding the initialisation code  for dma interrupts.
 DMA_ITConfig(DMA2_Stream1, DMA_IT_HTIF1, ENABLE);
 DMA_ITConfig(DMA2_Stream1, DMA_IT_TCIF1, ENABLE);
 DMA_ITConfig(DMA2_Stream1, DMA_IT_TEIF1, ENABLE);
 DMA_ITConfig(DMA2_Stream1, DMA_IT_FEIF1, ENABLE);
 DMA_ITConfig(DMA2_Stream1, DMA_IT_DMEIF1, ENABLE);




   // Enable the DMA Stream IRQ Channel
 NVIC_InitStructure.NVIC_IRQChannel = DMA2_Stream1_IRQn;
 NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
 NVIC_Init(&NVIC_InitStructure);

Outcomes