Skip to main content
Associate
March 1, 2023
Question

Hi, I am using STM32G0B1KBU6. I tried read ADC with DMA but DMA block my runtime. Why does DMA do that?

  • March 1, 2023
  • 1 reply
  • 660 views

..

This topic has been closed for replies.

1 reply

RBENF.1
ST Employee
March 2, 2023

Hello @MSeze.1​,

Can you please provide more information on your application ?

This could be a clock related issue.

Depending on how you configured your ADC and its clock, it is possible that too many interrupts are issued, preventing the main loop to run properly. In that case you can use a higher ADC clock prescaler to slow down its operation and allow the main loop to execute.

Regards,

Ryan