Skip to main content
Associate III
Feb 11, 2026 6:18 AM UTC
Solved

DCMI DMA STM32U5

Hi,

I'm developing a camera interfacing application. I've used GPDMA in linear-circular mode. But, now I have to handle larger resolution(640x480). Is there any application example from where I can start configuring DMA in CubeMx?

Imen.DBest answer
ST Technical Moderator
Feb 11, 2026 8:58 AM UTC

Hello @shubhenduatadben ,

You can start with examples in our STM32CubeU5 firmware package (based on BSP driver and HAL Driver) that can help you in your camera configuration:

I advise you to take a look to these resources that may help you on your project configuration:

  • AN5020: Introduction to digital camera interface (DCMI) for STM32 MCUs (precisely this section: 6.4.9 DMA configuration for higher resolutions)
  • AN5593 How to use the GPDMA for STM32 MCUs (3.3 GPDMA configuration for graphic peripherals section).

I found this tutorial for you : Using a Camera Module with the B-U585I-IOT02A Discovery Board

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

2 replies

Imen.DBest answer
ST Technical Moderator
Feb 11, 2026 8:58 AM UTC

Hello @shubhenduatadben ,

You can start with examples in our STM32CubeU5 firmware package (based on BSP driver and HAL Driver) that can help you in your camera configuration:

I advise you to take a look to these resources that may help you on your project configuration:

  • AN5020: Introduction to digital camera interface (DCMI) for STM32 MCUs (precisely this section: 6.4.9 DMA configuration for higher resolutions)
  • AN5593 How to use the GPDMA for STM32 MCUs (3.3 GPDMA configuration for graphic peripherals section).

I found this tutorial for you : Using a Camera Module with the B-U585I-IOT02A Discovery Board

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Associate III
Feb 11, 2026 11:33 AM UTC

Hi Imen,

    Thanks for your reply. I followed the tutorial referred by you. But the result is, HAL_DCMI_FrameEventCallback triggers only for 320x240 size RGB565 capture mode. On starting DCMI for  640x480 size RGB565, the callback never triggers. What I also notice that the buffer isn't filled properly, it's mostly empty.

Here is the env details:

MCU: STM32U5G9BJYXQ

STM32CubeIDE: 1.16.1

STM32U5 series: 1.6.0