Skip to main content
Richy
Visitor II
September 14, 2018
Solved

Bug in STM32F2 ADC low level driver LL_ADC_REG_Init regarding sequencerlength

  • September 14, 2018
  • 2 replies
  • 803 views

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.

This topic has been closed for replies.
Best answer by Amel NASRI

Hello,

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

-Amel

2 replies

Amel NASRI
ST Technical Moderator
September 24, 2018

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 "Best Answer" on the reply which solved your issue or answered your question.
Amel NASRI
Amel NASRIBest answer
ST Technical Moderator
December 10, 2019

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 "Best Answer" on the reply which solved your issue or answered your question.