Skip to main content
Johannes
Senior
February 9, 2022
Question

DMA initialization not done before ADC initialization, wrong order CubeIDE 1.8.0 STM32F0 Fw 1.11.3

  • February 9, 2022
  • 1 reply
  • 1640 views

I am using CubeIDE 1.8.0, STM32F0 FW Package 1.11.3

When you generate code from IOC file with ADC enabled and afterwards decide to enable DMA and run code generation again, the order of initialization is not correct. ADC is initialized before DMA is initialized.

0693W00000JP6F8QAL.pngAs a result, DMA simply does not work. DMA is not initialized for ADC in this configuration.

This can be fixed by re-arranging the initialization order in IOC in Tab "ProjectManger".

I would like to suggest, that the code generation checks this setting and forces DMA to be Initialized on position 3 (first SystemClock, then GPIO, then DMA, then everything else)

Johannes

This topic has been closed for replies.

1 reply

Peter BENSCH
ST Technical Moderator
February 9, 2022

This is a known issue and we are already working on it.

In the meantime, you can help yourself by changing the order manually, as you have described or as can also be found in this thread.

Regards

/Peter

@Khouloud OTHMAN​ 

In order 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.