ADC with DMA in discontinuous mode samples first rank twice (STM32F103)
Hi,
I want to use an ADC with DMA in a STM32F103. I configured it in Cube as you can see in the following picures.
When I start the conversion with
HAL_ADC_Start_DMA(&hadc1,(uint32_t*)AdcData,5);
HAL_ADC_ConvCpltCallback() is called and I see that the AdcData values all changed.
Unfortunately the first rank is sampled twice and the last rank is lost.
I tried to extend the DMA length to 6 but then I do not receive the callback.
I tried to extend the DMA length to 4 but then the last AdcData is unchanged.
Has anybody an idea why this happens and how I can get rid of this?


