Skip to main content
Lead
May 9, 2022 11:28 AM UTC
Solved

What DMA settings should I use for DCMI for STM32 if I'm using OV7670 camera without FIFO?

What DMA settings should I use for DCMI for STM32 if I'm using OV7670 camera without FIFO?

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
May 11, 2022 8:09 PM UTC

Which STM32?

> FIFO settings,

You mean DMA FIFO? Yes, make the best use of it, this is a high-bandwidth peripheral.

> memory

RAM.

> Should it be Word, or Half word?

0693W00000NpnaqQAB.png 

JW

3 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
May 10, 2022 4:01 PM UTC

Hello @Daniel Mårtensson​ ,

Thanks for your feedback,

The only DMA request available for DCMI is DCMI_PSSI.

0693W00000NpiFYQAZ.pngAfter selecting it in CubeMX, The following three lines will be generated in HAL_DCMI_MspInit() function.

A specific comment is added to inform that only one LINK will be useful.

* Several peripheral DMA handle pointers point to the same DMA handle. Be aware that there is only one channel to perform all the requested DMAs. */
 __HAL_LINKDMA(hpssi,DMA_Handle,hdma_dcmi_pssi);
 __HAL_LINKDMA(hpssi,hdmarx,hdma_dcmi_pssi);
 __HAL_LINKDMA(hpssi,hdmatx,hdma_dcmi_pssi);

__HAL_LINKDMA(hpssi,DMA_Handle,hdma_dcmi_pssi) request should be kept and the others should be commented.

Please make sure to comment the unneeded lines each time you re-generate the code.

I hope this helps :smiling_face_with_smiling_eyes:

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

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.
DMårtAuthor
Lead
May 11, 2022 7:30 PM UTC

Hello @Sara BEN HADJ YAHYA​ 

Yes. But how about the rest of the settings such as FIFO settings, memory? Should it be Word, or Half word?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
waclawek.jan
waclawek.janBest answer
Super User
May 11, 2022 8:09 PM UTC

Which STM32?

> FIFO settings,

You mean DMA FIFO? Yes, make the best use of it, this is a high-bandwidth peripheral.

> memory

RAM.

> Should it be Word, or Half word?

0693W00000NpnaqQAB.png 

JW