Associate III
Feb 6, 2022 11:07 PM UTC
Solved
STM32CubeMX issue for STM32F1 ADC-DMA code
- 1 reply
- 740 views
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?
