STM32CubeMX issue for STM32F1 ADC-DMA code
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-06 3: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.
Labels:
- Labels:
-
ADC
-
DMA
-
STM32CubeMX
This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION
Accepted Solutions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-06 4:21 PM
If you feel a post has answered your question, please click "Accept as Solution".
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-06 4:21 PM
If you feel a post has answered your question, please click "Accept as Solution".
