2016-02-03 08:46 AM
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? #discovery #lcd #dcmi #stm32f4292016-02-03 09:21 AM
Found problem in camera config, works now.
2016-02-03 09:24 AM
Hi soroka.andrey,
Thank you for posting your findings and how you fixed the issue, it is good to hear that it was solved. -Syrine-