cancel
Showing results for 
Search instead for 
Did you mean: 

Poblem with ADC + DMA + Timer in STM32H745

Davood_Kesha
Associate III

Hello ST experts,
I configured an STM32H745 dual core to read data from ADC1/ADC2 in dual mode. I dedicated the M7 core to initialize ADCs, timer and DMA. But after running the code it seems that the ADC is not working either DMA.  
I used the similar code on the STM32H750 single core. The code is correct.
I think I have to configure extra settings for dual core such as managing the memory. Could you please help me.
The DMA is in circular mode with "Word" data length.
TIM2 triggers the ADCs.
 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Super User

Either post your code or go off one of the many existing examples for this chip.

DMA is not working on STM32H7 devices - STMicroelectronics Community

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

8 REPLIES 8
TDK
Super User

There's no reason the single core code can't work on the dual core device. Recheck your assumptions. Ensure DMA buffer is somewhere the DMA can access.

If you feel a post has answered your question, please click "Accept as Solution".

Hi,
 Thanks for response. How can I define a buffer with DMA access? Could you please give some suggestion? I am using Keil IDE.

 

@Davood_Kesha 

H750 and H745 have the same RAM memory size at the same address location. To me it should work if it is working on H750. 

From which side you are using ADC? CM4 or CM7?

How did you test your case? in debug mode? if yes, CM4 is in low power mode at start up?

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.

Hello,
I am using CM7 for ADC, DMA and timer.
My IDE is Keil uvision and using Keil debugger. Should the CM4 be in low power mode?

Best,
Thanks.

 

TDK
Super User

Either post your code or go off one of the many existing examples for this chip.

DMA is not working on STM32H7 devices - STMicroelectronics Community

If you feel a post has answered your question, please click "Accept as Solution".

@Davood_Kesha wrote:

Should the CM4 be in low power mode?


If you are using CubeMx to generate the code, ensure you disable:

#define DUAL_CORE_BOOT_SYNC_SEQUENCE

by commenting out this define.

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.

I cannot find it in Keil MDK. Where should I looking for?

 

It starts to be an unnecessary ping pongs here.

Please share your project ..

 

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.