cancel
Showing results for 
Search instead for 
Did you mean: 

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

Johannes
Senior

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

1 REPLY 1
Peter BENSCH
ST Employee

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.