Bug in STM32F2 ADC low level driver LL_ADC_REG_Init regarding sequencerlength
STM32F2: (possibly other families like F4 may be affected too - not verified)
Library: STM32Cube_FW_F2_V1.7.0
Component:
ADC Low Level Driver (file stm32f2xx_ll_adc.c)
Affected function: LL_ADC_REG_Init
register CR1 is wrongly initialized with SequencerLength which should be written into SQR1 register only. SequencerLength is additionally written by function LL_ADC_REG_SetSequencerLength in function LL_ADC_REG_Init, which is correct.
Workaround: set sequencer length to LL_ADC_REG_SEQ_SCAN_DISABLE in initialization structure used by function LL_ADC_REG_Init.
Afterward call LL_ADC_REG_SetSequencerLength with the sequencer legnth required by your application.
HAL implementation seems to be correct.
