DCMI examples based on STM32CubeMX
- Capture and display of RGB data
Data captured in RGB565 format with QVGA (320 × 240) resolution, stored in the SDRAM, and displayed on the LCD‑TFT
- Capture of YCbCr data
Data captured in YCbCr format with QVGA (320 × 240) resolution and stored in the SDRAM
- Capture of Y-only data
DCMI configured to receive Y-only data to be stored in the SDRAM
- Resolution capture (YCbCr data format)
Data captured in YCbCr format with a 1280 × 1024 resolution and stored in the SDRAM
- Capture of JPEG data
Data captured in JPEG format, and stored in the SDRAM
All these examples have been implemented on 32F746GDISCOVERY using STM32F4DIS-CAM (OV9655 CMOS sensor), except the capture of JPEG data that was implemented on STM324x9I-EVAL (OV2640 CMOS sensor).
- Import the received data from the DCMI to the DMA (to be stored in FIFO temporarily) through its peripheral port.
- Transfer the data from the FIFO to the SDRAM.
- Import data from the SDRAM to be displayed on the LCD-TFT, only for the RGB data format. For the YCbCr or JPEG data format, the user must convert the received data to RGB to be displayed.
Figure 49. Data path in capture and display application 
For these examples, the user needs to configure the DCMI, the DMA2, the LTDC (for the RGB data capture and display example), and the SDRAM.
- GPIO configuration
- DMA configuration
- Clock configuration
- DCMI configuration
- Camera module configuration
The next sections provide the hardware description, the common configuration using STM32CubeMX, and the common modifications that have to be added to the STM32CubeMX generated project.


















