AnsweredAssumed Answered

cubeMx, DMA and Adc

Question asked by panduro.soeren.002 on Apr 13, 2015
Latest reply on Nov 24, 2016 by Price.Nicholas.001


I just have a simple question; I think I’m missing something.

I using cubeMX for getting the ADC up running with 2 ch ( IN8 and IN15)

And the DMA for transferring the data to a buffer.

I have added a picture showing the cubeMX ADC setup

And I Use the:

if( HAL_ADC_Start_DMA( mpHadc, (uint32_t *)rawAnalogData, 4 ) == HAL_OK )


For starting the ADC.


And I have implemented the:

void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc)


                             analogConvDone = true;



 The problem is that I only get data from ch8 (rank 1) and NOT from ch15

 Hops someone can give a hint.