AnsweredAssumed Answered

Can't get Multiple ADCs working on STM32F303VCT6

Question asked by harrison.david on Apr 1, 2015
Latest reply on Oct 26, 2015 by ahmed.omri.001
Hi, I am using the STM32F303VCT6 chip on the STM32F3Discovery Kit. I want to use 37 of the 39 available ADC inputs for a data logger project.

I have successfully got ADC1 working with DMA1_Channel1 and ADC2 working with DMA2_Channel1. Each dumps 10 or so values into RAM using DMA. But I can't get either to work with their respective DMA channels 2,3 or 4. I want to effectively use all 4 ADCs simultaneously so I start each off on a single sequenced conversion and dump the 8-12 ADC values per ADC into RAM using DMA. I then wait until the next data dump period, which is 100-1000ms, log the previously converted ADC values, and start off the next conversion for each ADC.

Does anyone know why I can't effectively use DMA channels greater than 1 with the ADCs?

I have attached the source code for my ADC initialization. The GPIO pins have already been configured as Analog in pins before the ADCxInit() functions are called.

Thanks.

Attachments

Outcomes