AnsweredAssumed Answered

DMA2D configuration error

Question asked by chichkine.ivan on Jun 25, 2014
Latest reply on Jun 27, 2014 by chichkine.ivan
I'm trying to do a simple memory to memory transfer with the DMA2D, but the configuration error flag is being set when I start a transfer. Here is the initialization code:
uint16_t *imageBuf = (uint16_t*)0xC0000000;
 
RCC->AHB1ENR |= RCC_AHB1Periph_DMA2D;
 
DMA2D->FGPFCCR = DMA2D_RGB565;
DMA2D->FGCOLR = 0;
 
DMA2D->FGMAR = (uint32_t)imageBuf+76800;
DMA2D->FGOR = 0;
 
DMA2D->CR = DMA2D_M2M;
 
DMA2D->OPFCCR = DMA2D_RGB565;
DMA2D->OCOLR = 0;
 
DMA2D->OMAR = (uint32_t)imageBuf;
DMA2D->OOR = 0;
 
DMA2D->NLR = (uint32_t)((240<16)|320);
The reference manual has a section on configuration errors and what can cause them, and my code seems to check out, but clearly there is still something wrong.

Outcomes