2022-11-12 01:18 PM
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
2022-11-14 12:32 AM
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