AnsweredAssumed Answered

STM32F429 DCMI -> DMA -> SDRAM

Question asked by soroka.andrey on Feb 3, 2016
Latest reply on Feb 3, 2016 by Nesrine M
Im trying to get image via DCMI, everything works fine, except DCMI frame received interrupt. When im receiving 320x240 rgb565 image, HAL_DCMI_FrameEventCallback is never triggering, so I redefined dma callback with my own function:

HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_SNAPSHOT, SDRAM_BANK_ADDR, (uint32_t)(IMG_ROWS*IMG_COLUMNS*2/4));
hdcmi.DMA_Handle->XferCpltCallback = DMA_TransferComplete;

But it works only for 320x240 (because it less than DMA buffer size 0xFFFF).
When Im sending 640x480 image, DMA XferCpltCallback is triggered after the part of the data transfered, not the whole, but HAL_DCMI_FrameEventCallback works as it must. How can I trigger HAL_DCMI_FrameEventCallback with 320x240 image?

Outcomes