2025-10-24 2:50 AM - last edited on 2025-10-24 4:00 AM by Andrew Neil
Hello,
I am using the STM32F429I-Discovery board with an MT9M001 camera module, and I am developing with STM32CubeIDE.
I would like to display the live camera image on the built-in LCD of the F429 board.
I have already connected the camera and can read image data through DCMI, but I am not sure how to configure LTDC (and possibly DMA2D) to display the image in real time on the LCD.
Could you please provide guidance or an example on how to:
1. Configure LTDC for displaying a frame buffer
2. Transfer camera image data from DCMI to the LTDC frame buffer using DMA
3. Match the resolution and pixel format between camera and LCD
4. Set up these peripherals correctly in STM32CubeIDE
Thank you for your support.
2025-10-24 3:26 AM
Hello @chachamaru and welcome to the community,
I recommend you to look at DCMI_CaptureMode example in STM32CubeF4 firmware package under "STM32Cube_FW_F4_V1.X.X\Projects\STM324x9I_EVAL\Examples\DCMI" path and get inspired to configure the LTCD and the DMA2D.
This example provides a short description of how to use the DCMI to interface with camera module and display in continuous mode the picture on LCD.
In this example, the Digital camera interface is configured to receive the capture from the camera module mounted on STM324x9I-EVAL RevB evaluation board. DMA2 Stream1 channel1 is configured to transfer the picture from DCMI peripheral to an external RAM. At each camera line event, the line is converted to ARGB8888 pixel format
and transferred to LCD_FRAME_BUFFER using DMA2D. The camera module is configured to generate (480x272) image resolution and the LCD is configured to display (480x272) image resolution.
Thank you.
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.