2025-04-28 9:50 AM
I'm using an STM32H7 microcontroller to interface with an OV2640 camera. I'm utilizing the 8-bit DCMI interface to capture data from the camera and transfer it to a DMA FIFO buffer. My camera configuration includes generating an 8MHz MCO signal for the MCLK input on the OV2640. I'm processing the data with a Digital Signal Processor to obtain RGB565 format at a resolution of 120x160 pixels. Currently, my HSYNC is set to HIGH, VSYNC to LOW, and I'm using a pixel clock with a rising edge. The problem I am having is I get no valid bytes from the DMA FIFO buffer. I get the value of 0x00. Below is my main.c with the functions running the program, the values I write to the register also work. Please help.