2024-01-01 02: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.
2024-01-01 04:21 AM - edited 2024-01-01 04: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);
2024-01-01 04:21 AM - edited 2024-01-01 04: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);
2024-01-01 05:53 AM
Great! Thankyou so much that did the trick