OV2640 Stop working

Hi, I am mansour Ameri, and trying to drive my ov2640 camera by using STM32f407 microcontroller, according to your project I made my setup case. everything is good but when I run my code, when code reaches to write OV2640_JPEG_INIT[][2], the register addresses 0x2c and 0x2e, the camera stops working and I must reset everything, when I comment these two registers, the camera is still working but I receive a crashed data, I need your help


Sorry, we have not driven this camera on stm32f407.
I’m afraid I don’t have a better suggestion.