How to make OV5640 work with STM32F429

Hi, in my group project, we want to use OV5640 along with a differenct processor STM32F429 (instead of the original STM32H743II used in OpenMV Cam H7 Plus). I am trying to change the pin and port in the OpenMV source code (link: openmv/omv_boardconfig.h at master · openmv/openmv · GitHub) to make OV5640 “connect” to STM32F429, but I don’t know if I am getting the syntax right or not.

For example, on our board, DCMI_D2 is connected to PG10 (port G, #10) on STM32F429. Is it correct to change
#define DCMI_D2_PIN (GPIO_PIN_0)
from the original code to
#define DCMI_D2_PIN (pin_G10)
in our code?

Also, how do I modify the port #define DCMI_D2_PORT (GPIOE) accordingly?

Any help or related information would be greatly appriciated!

Hi, if you are going to change the firmware you are expected to know what you are doing.

Please note that the F429 can’t handle the datarate of the OV5640.