Skip to main content
Associate
May 2, 2024
Question

DCMI is not working in STM32U5A5Z

  • May 2, 2024
  • 1 reply
  • 2445 views

hello

 

OV2640 is used as the camera module 

achovy_0-1714636484345.png

I use this fuction  HAL_DCMI_Start_DMA(phdcmi, DCMI_MODE_SNAPSHOT, frameBuffer, length); 

 

And I'm going to receive data through UART.

achovy_2-1714636571233.png

However, the data is not coming.

 

If you have any good ideas, please let me know

 

I'm attaching my code here.

    This topic has been closed for replies.

    1 reply

    KDJEM.1
    ST Technical Moderator
    May 2, 2024

    Hi @achovy ,

    I think that you want to capture a JPEG data.

     

    hdcmi.Init.JPEGMode = DCMI_JPEG_ENABLE;

     

    For that, it is recommended to update the camera module configuration in ov2640.c as mentioned in AN5020 section 8.3.7 JPEG data capture.

    May How to configure the GPDMA? article can help you.

    I hope this help you.

    Thank you.

    Kaouthar

     

    To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.