2022-02-06 03:07 PM
The simple proj is attached to show the wrong code generation for ADC-DMA peripheral.
To fix this issue two lines must be changed as below.
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_ADC1_Init(); // ERROR!!! RCC CLK NOT YET ENABLED!
MX_DMA_Init(); // MOVE THIS LINE BEFORE MX_ADC1_Init();
Are you can suggest other fix?
Solved! Go to Solution.
2022-02-06 04:21 PM
2022-02-06 04:21 PM