Associate III
February 6, 2022
Solved
STM32CubeMX issue for STM32F1 ADC-DMA code
- February 6, 2022
- 1 reply
- 735 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?
