2015-08-24 01:08 PM
When Discontinuous Conversion Mode is disabled CubeMX leaves the NbrOfDiscConversion field in ADC_InitTypeDef uninitialized which can cause assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)) in
HAL_ADC_Init to trigger resulting in an assert failure. CubeMx Version 4.9.0 STM32Cube FW_L1 V1.3.0 #bug #stm32cubemx #stm32l #assert2015-08-26 07:41 AM
Dear user,
thank you for reporting this issue. Actually, the parameterNbrOfDiscConversion
shall not be initialized when Discontinuous conversion is disabled. The ADC HAL driver will be corrected so that the following line is executed only if Discontinuous conversion is enabled:assert_param(IS_ADC_REGULAR_DISCONT_NUMBER(hadc->Init.NbrOfDiscConversion));
Best regards2015-10-12 01:46 AM