Skip to main content
Visitor II
December 22, 2023
Question

STM32MP153 - DCMI only capture 320x240 or smaller

  • December 22, 2023
  • 1 reply
  • 1333 views

Hi, I am using STM32MP153 and DCMI interface, camera OV5640.

we are using DT same as here: DCMI device tree configuration - stm32mpu

For 640x480 or higher, we always get dma error as below:

DatTran_0-1703271292795.png

For 320x240: Seems first capture has no problem, but start from second capture, we also always have dma error as below:

 

DatTran_1-1703271392623.png

does anyone know what I am missing, please?

 

 

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 3, 2024
    Dat TranAuthor
    Visitor II
    January 11, 2024

    Thanks PatrickF,

    I got dma working with resolution higher than 320x240. Problem was, I am using old kernel that using dmaengine_prep_slave_single while new version use dmaengine_prep_slave_sg.

     

    But I still have one more problem if you know or have any hint.

    In stm32-dcmi.c we have 

    dcmi->dma_max_burst = caps.max_sg_burst * DMA_SLAVE_BUSWIDTH_4_BYTES;

    When I debug, this value give me 262080 = 65520 * 4  = STM32_DMA_ALIGNED_MAX_DATA_ITEMS * 4

    Any transfer bigger than 262080 bytes will be failed.