2025-01-31 11:11 PM
Greetings
I am using STM32F030C8T6TR for ADC on two channels IN1 & IN3. It works. However I wanted to add DMA.
When trying to add DMA , It shows on two channels channel 1 and channel 2 , Though the datasheet mentions DMA is available for 5 channels. I can add DMA for channel 1 - Peripheral to memory. However when I try to add a DMA for another channel It shows error "No DMA available for this peripheral".
I could add DMA for the above channels in Memory to memory mode.for the ADC though. Is this OK can It my understanding that when using ADC, peripheral to memory should be used. In which case I can add only one of the two channels - channel 1 or channel 2.
How does this work ? will memory to memory on both channels work as expected ?
or is this some kind of version related error ? I use STM32CubeIDE1.15.0 on windows 7.
Thank you.
2025-01-31 11:24 PM
Please read the ADC description in Reference Manual. You only need one DMA channel for ADC, in peripheral to memory mode, programmed to transfer the number of item equal to the number of ADC channels being converter.For simple cases, it's convenient to setup ADC in continuous conversion mode and DMA in circular mode.