Skip to main content
This topic has been closed for replies.
Bruno_STBest answer
ST Employee

Hello @Javier Muñoz​ 

Just a basic question: Did you enable the DMA2 clock ? (RCC_AHB1ENR bit 22) ?

(or call corresponding HAL/LL to do it)

BR,

Bruno

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.

2 replies

Bruno_STBest answer
ST Employee

Hello @Javier Muñoz​ 

Just a basic question: Did you enable the DMA2 clock ? (RCC_AHB1ENR bit 22) ?

(or call corresponding HAL/LL to do it)

BR,

Bruno

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.
Javier1
Javier1Author
Principal

Howdy @Bruno_ST​ 

Ding ding ding!, that was it.

Im using autogenerated CUBEMX code.

It looks like CubeMX places ADCDMA config after the DMA clock is enabled (RCC->AHB1ENR), so thats why it wasnt working

0693W00000GWS5bQAH.pngIf i move the MX_DMA_Init before the ADC init everything works

hit me up in https://www.linkedin.com/in/javiermuñoz/