AnsweredAssumed Answered

STM32L053 HAL Multi Channel DMA ADC

Question asked by rowse.chris on Jan 18, 2016
Latest reply on Jan 18, 2016 by Clive One
I'm having a problem getting the above to work with 2 channels using the cube generated code.

I can get it to work on a single channel ADC, but not on multiple channels in scan mode.

The HAL docs talk of ADC_Channel_conf_Type_def having 2 parameters (UM1749 pg89)  ... channel and RANK 

but the library itself only has one parameter (the following taken from stm32l0xx_hal_adc.h)

  * @brief  ADC Configuration regular Channel structure definition  
typedef struct 
  uint32_t Channel;                /*!< the ADC channel to configure 
                                        This parameter can be a value of @ref ADC_channels */ 

Any ideas what I am doing wrong?

My complete code can be found at

Thanks in advance