cancel
Showing results for 
Search instead for 
Did you mean: 

DCMI DMA STM32U5

shubhenduatadben
Associate III

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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

STM32CubeIDE1.16.1

STM32U5 series: 1.6.0