Bug: ADC with DMA, Init code not enabeling RCC_DMA_CLK on STM32L151
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-14 1:49 AM
When creating ADC with DMA the call to MX_Adc_Init() is created before MX_DMA_Init() which in this case means that RCC clocks of DMA are not enabled during MX_ADC_Init(), which is odd. To fix this:
Init code should enable RCC_DMA clock in ADC_Init() or ensure correct init-order
Solved! Go to Solution.
Labels:
- Labels:
-
ADC
-
DMA
-
STM32CubeMX
-
STM32L1 Series
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-14 4:50 AM
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-14 4:50 AM
If you feel a post has answered your question, please click "Accept as Solution".
