Multiple Channel ADC STM32H743ZI2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-01 2:57 AM
Hi all, i'm experimenting using ADC in STM32H743ZI2
i managed to get the single channels working on ADC1 and ADC2,
and i want to use ADC3 with multiple channels, oncourse i followed all the manuals in youtube etc.. but still no luck
i am using ADC3 channels 1 5 6 8.
i am transferring the data to DMA and i am waiting for the conversion to finish but it never does.
any help or ideas will be appreciated.
these are my settings and code (with all the insignificant parts cleared off)
many thanks!
Solved! Go to Solution.
- Labels:
-
ADC
-
DMA
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-01 4:21 AM - edited ‎2024-01-01 4:22 AM
Hi,
BDMA can only access SRAM4 area, so you have to put your rawValues in this memory !
I would just use DMA1 or 2 , can access all ram areas.
see rm :
+
You might need to init dma :
HAL_DMA_Init(&hdma_adc3);
HAL_ADC_Start_DMA(&hadc3, (uint32_t *)rawValues, 4);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-01 4:21 AM - edited ‎2024-01-01 4:22 AM
Hi,
BDMA can only access SRAM4 area, so you have to put your rawValues in this memory !
I would just use DMA1 or 2 , can access all ram areas.
see rm :
+
You might need to init dma :
HAL_DMA_Init(&hdma_adc3);
HAL_ADC_Start_DMA(&hadc3, (uint32_t *)rawValues, 4);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-01-01 5:53 AM
Great! Thankyou so much that did the trick
