2025-07-14 5:04 AM - last edited on 2025-07-14 9:02 AM by Andrew Neil
Hi everyone,
I'm trying to interface a DVP camera (like OV5640) with the STM32F469I-DISC0 board using the DCMI peripheral in 8-bit parallel mode.
What I have:
- The camera is configured and outputs data correctly via I2C.
- I'm using bare-metal code (no HAL or CubeMX), and SDRAM + USART debug are working.
- DCMI pins are being mapped as per the STM32F469 reference manual.
- I verified that I can access and remap the following DCMI pins:
- D0 – available
- D1 – available
- D2 – available
- D3 – available
- D4 – not available(e.g., PE5)
- D5 – available
- D6 – available
- D7 – available
- HSYNC, VSYNC, PCLK – available
Problem:
- DCMI_D4 is not brought out on any connector** on the DISC0 board. It's internally routed to LCD or unused.
- I checked the board schematic and there’s no easy way to solder to it either.
My questions:
1. Can DCMI work with 7-bit data (skipping D4)? Will DCMI capture still be valid if D4 always reads 0?
2. Is there any known workaround for the missing D4 line (e.g., using a dummy input, or masking D4 at software level)?
3. Has anyone successfully interfaced a camera with this DISC0 board and ignored one DCMI data line?
4. Would you recommend switching to 4-bit mode or dropping down to RGB444 or YUV422 and masking bits?
Additional context:
- My goal is to capture camera frames in RGB565 or YUV format and display/stream/debug from SDRAM.
- I’m okay to accept reduced image quality if 1 bit is lost (e.g., D4 = 0 always), but want to understand if DCMI handles this gracefully or fails.
Thanks in advance for any insights or prior experiences!
Sanjay S K
2025-08-22 2:09 AM
Hello @sanjaykrishnegowda and welcome to the community;
According to reference manual the DCMI main features are:
• 8-, 10-, 12- or 14-bit parallel interface
• Embedded/external line and frame synchronization
• Continuous or snapshot mode
• Crop feature
• Supports the following data formats:
– 8/10/12/14-bit progressive video: either monochrome or raw Bayer
– YCbCr 4:2:2 progressive video
– RGB 565 progressive video
– Compressed data: JPEG
7 bits mode is not supported.
Note that the DCMI_D4 is available on PE4, PC11 and PH14 pins.
Thanks and best regards,
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.