Question
Why CUBEMX is generating in wrong sequence the init functions?
Hi, I wanted to use DMA with ADC, I configured all parameters in CubeMX in STM32IDE but it did not work. I analysed that and the problem was in init functions. CUBEMX calls first the ADC_init function and later the DMA_init function. ADC_init configures also the DMA but the DMA's clock is not at this time enabled, so all the configuration will be discard.
I change manually the sequence of the init functions, first the DMA_init and after the ADC_init.
After this change everything is working properly.
