stm32cubeide won't let me select DMA1 with ADC periphereal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 2:00 AM
When adding a new DMA request to the ADC1 periphereal the only stream options available are DMA2 stream 0 and DMA2 stream 4. As I don't have any other DMA request enable I would expect to be able to select any stream from any DMA periphereal. Why is that I have this restriction?
- Labels:
-
ADC
-
DMA
-
STM32CubeIDE
-
STM32CubeMX
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 2:27 AM
These connections between peripherals are not "any to any". Check the reference manual for your chip, it should have a table for possible connections. That table should match what STM32CubeIDE is showing.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 3:13 AM
According to RM0090 both dma controllers are connected to AHB2 peripherals (which ADC are). Tables 42 and 43 shows possible channel configurations, but I guess that not all possible configurations are listed there. So, how can I identify which channels are connected to each peripheral?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 5:37 AM
> According to RM0090 both dma controllers are connected to AHB2 peripherals (which ADC are).
AHB2 - that's the data bus for ADC data, not those triggers you want.
> Tables 42 and 43 shows possible channel configurations
Correct. That's it, nothing more. Same as STM32CubeIDE is showing.
hth
KnarfB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 6:31 AM
> Tables 42 and 43 shows possible channel configurations, but I guess that not all possible configurations are listed there.
On the contrary, the table does show all possible configurations. The ones not listed are not options.
Newer families are not as restricted as the F4 in terms of stream assignments.
