STM32H7A3 DCMI does not capture data.
Hello everyone.
I've got a problem running DCMI interface on STM32H7A3 MCU. I'm using NUCLEO-H7A3ZI devboard and OV7670 camera module. Installed the latest CubeIDE and generated code in builtin configurator. Actually I'm using Segger Embedded Studio for development and debug but this does not seem to be a reason.
I configured camera module and can confirm that all data and syncro signals are correct. Frame buffer is 153600 bytes size for 320*240 16 bits image. DCMI is able to detect VSYNC and HSYNC pulses and generates interrupts, so framing is working as expected. DMA seems to work as well, I can see data in buffer. The problem is that I receive 1176 bytes of 0x08 and then all zeroes. According to debug info DCMI data register really gets 0x08 and 0x00 bytes, packs them to words and buffers for the further DMA transfer. I'm curios why port is not reading correctly? I tried to cover camera lens and tried set camera to transmit color bars in demo mode. Also played with master clock frequency changing pixel clock from 1.5 to 6 MHz. Result is always the same despite I see the real pixel data on bus with oscilloscope.
Does anyone faced the same issue or can provide any thoughts?
Any help is apreciated!
Regards,
Dmitriy.


