Solved
STM32L4 ADC HAL Multimode
Posted on August 03, 2016 at 15:14
Hello! I am trying to start ADC2 on stm32l476, but it always goes to error handler
multimode.Mode = ADC_MODE_INDEPENDENT; if (HAL_ADCEx_MultiModeConfigChannel(&hadc2, &multimode) != HAL_OK) { Error_Handler(); } This condition never return true if ( (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET) && (ADC_IS_CONVERSION_ONGOING_REGULAR(&tmphadcSlave) == RESET) ) I checked bits in registers but they are ok. Can you tell me thats wrong?