Skip to main content
Dat Tran
Senior 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

PatrickF
Technical Moderator
January 3, 2024

Hi @Dat Tran 

Maybe AN5470 STM32MP15x Series interfacing with a MIPI® CSI-2 camera could help

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
Dat Tran
Dat TranAuthor
Senior 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.