2024-04-28 10:37 PM
hello !
OV2640 is used as the camera module and I want to use GPDMA when I send DCMI data.
If MX sets up like this and generates code
There's an error like this (handle_GPDMA1_Channel12' undeclared (first use in this function); did you mean 'handle_GPDMA1_Channel0'?)
So please let me know how to use GPDMA in DCMI or OV2640, in STM32U5AZJ.
Solved! Go to Solution.
2024-04-29 04:54 AM - edited 2024-04-29 04:54 AM
Hello @achovy and welcome to the Community :),
-->There's an error like this (handle_GPDMA1_Channel12' undeclared (first use in this function); did you mean 'handle_GPDMA1_Channel0'?)
Thank you for bringing this issue to our attention with GPDMA: Standard Request Mode. I reported this internally.
Could you please add in main.c under Private variables this line:
DMA_HandleTypeDef handle_GPDMA1_Channel12;
and in STM32u5xx_it.c under external variables this line:
extern DMA_HandleTypeDef handle_GPDMA1_Channel12;
Also you can use the GPDMA Linked-List mode without issue. For that I recommend you to refer to the DCMI_ContinousCap_EmbeddedSynchMode example. This example can help you to start with GPDMA and DCMI.
Also, please take a look at AN5593 How to use the GPDMA for STM32 MCUs precisely section GPDMA configuration for graphic peripherals.
Internal ticket number: 180281 (This is an internal tracking number and is not accessible or usable by customers).
Thank you.
Thank you.
Kaouthar
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.
2024-04-29 04:54 AM - edited 2024-04-29 04:54 AM
Hello @achovy and welcome to the Community :),
-->There's an error like this (handle_GPDMA1_Channel12' undeclared (first use in this function); did you mean 'handle_GPDMA1_Channel0'?)
Thank you for bringing this issue to our attention with GPDMA: Standard Request Mode. I reported this internally.
Could you please add in main.c under Private variables this line:
DMA_HandleTypeDef handle_GPDMA1_Channel12;
and in STM32u5xx_it.c under external variables this line:
extern DMA_HandleTypeDef handle_GPDMA1_Channel12;
Also you can use the GPDMA Linked-List mode without issue. For that I recommend you to refer to the DCMI_ContinousCap_EmbeddedSynchMode example. This example can help you to start with GPDMA and DCMI.
Also, please take a look at AN5593 How to use the GPDMA for STM32 MCUs precisely section GPDMA configuration for graphic peripherals.
Internal ticket number: 180281 (This is an internal tracking number and is not accessible or usable by customers).
Thank you.
Thank you.
Kaouthar
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.
2024-04-29 08:32 AM
2024-04-29 09:26 AM
Hi @achovy ,
Glad to know that the initial issue is solved :).
Could you please check the status of CAPTURE bit in DCMI_CR?
I recommend you to take a look at AN5020 Introduction to digital camera interface (DCMI) for STM32 MCUs may help you. This application note gives to the STM32 users some basic concepts, with easy-to-understand explanations of the features, architecture, and configuration of the DCMI. It is supported by an extensive set of detailed examples.
If your initial issue is solved please close this thread by Accept as Solution on the reply which solved your issue. If your second issue is still, could you please create a new post to give it more visibility on the Community.
Thank you.
Kaouthar
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.
2024-07-12 12:57 AM
Hello @achovy ,
The issue is fixed in STM32CubeIDE1.16.0 and STM32Cube MX 6.12.0 versions.
Thank you.
Kaouthar
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.