cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 ADC DMA or Not DMA

Ygndz.1
Associate

Hello. I am making software with STM32F030CCT6 processor. I am trying to make ADC with or without DMA. I always face this problem in F0 series. I can read only one channel. When it switches to multi-channel, it transfers data from a single channel to all channels. In the STM32F4 series, we could choose the rank in the settings. So it was easy to run DMA. You can't choose rank on this one. How to read multiple ADCs in F0 series Can you help with the HAL library?

3 REPLIES 3
Ygndz.1
Associate

Guys, I found the solution. Stuck friends can try the code here.

https://community.st.com/s/feed/0D50X0000BDmUYOSQ3

TDK
Guru

The ADC peripheral varies between series, so don't expect the interface to be the same. It's also perhaps the peripheral with the most examples.

Here is an example on the F0 for reading multiple ADC channels.

https://github.com/STMicroelectronics/STM32CubeF0/blob/4390ff6bfb693104cf97192f98c3dc9e3a7c296a/Projects/STM32F072RB-Nucleo/Examples/ADC/ADC_Sequencer/Src/main.c

If you feel a post has answered your question, please click "Accept as Solution".
Muhammed Güler
Senior III

In the F0 series, you can only scan from first to last or from last to first. If you are using 2, 5, 7 inputs, you can only read 2-5-7 or 7-5-2. default order 2-5-7