Skip to main content
Guangzong
Visitor II
November 12, 2022
Question

stm32u575 DMA and DCMI issue.

  • November 12, 2022
  • 1 reply
  • 761 views

I am trying to use DCMI and DMA to capture picture.

But I got data transfer error from DMA. 

And I found the following information from the reference manual. 

Data transfer error

on a bus access (as a AHB single or a burst) to the source or the destination

- The source or destination target reports an AHB error.

- After a GPDMA data transfer error, the user must perform a debug session, taking care of the product-defined memory mapping of the source and destination, including the protection attributes.

I am not sure what I should debug. "product-defined memory mapping of the source and destination." I am not sure what it's. For the source of DMA I use &DCMI->DR. for the destination I use var; var is an array name (global variable).

Appreciate any help.

Best,

Guangzong

This topic has been closed for replies.

1 reply

ST Technical Moderator
November 14, 2022

Hello @Guangzong​,

Let me first welcome you to the Community :)

Check if the DMA clock is enabled? If not, please enable it.

Which release of Cube and CubeMx are you using? It maybe you have the same issue as this post.

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Imen

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. Thanks