Associate III
April 13, 2015
Question
cubeMx, DMA and Adc
- April 13, 2015
- 3 replies
- 1145 views
Posted on April 13, 2015 at 14:17
HI
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;
HAL_ADC_Stop_DMA(mpHadc);
}
The problem is that I only get data from ch8 (rank 1) and NOT from ch15Hops someone can give a hint. #adc-dma-cubemx