cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in STM32F2 ADC low level driver LL_ADC_REG_Init regarding sequencerlength

Richy
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee

Hello,

Please note that the fix is available in the patch 1.24.2 of STM32CubeF4 package (already available on the web).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Amel NASRI
ST Employee

Hi @Richy​ ,

Thanks for reporting this issue.

I confirm that it is valid for STM32F4 and I would like to inform you that it is tracked internally to be fixed in coming versions of Cube packages.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Amel NASRI
ST Employee

Hello,

Please note that the fix is available in the patch 1.24.2 of STM32CubeF4 package (already available on the web).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.