STM32U5 GPDMA getting remaining bytes when using linked lists
Hi.
I'm using STM32U585 with OV5640 to capture the image. I set the DMCI synchronization to hardware to us Hsync and Vsync. However, I set the camera to send JPEG image rather than raw image, so the frame size is unknown. Now the problem is that it's not possible to use the frame_event to capture an frame. because the way I see frame_event, it's fired when the buffer size that we specified when we start capture is filled. which might contain several and half image. So, I have to use Vsync_event. What I can't find out is how to know how many bytes has been transferred when the Vsync_event has happened. The dcmi is using linked list dma.
My question is:
How can I read how many bytes has been transferred by the DMA? where should I look at?
Kind Regards,
Milad
