STM32L052 ADC driver prescaler always > 1 Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Alex
Posts: 33
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

STM32L052 ADC driver prescaler always > 1  Topic is solved

Postby Alex » Tue Apr 27, 2021 5:04 am

STM32L052 ChibiOS 20.3.3 The ADC driver does not allow setting the prescaler value to 1 (ADC_CCR_PRESC = 0). This is correct?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L052 ADC driver prescaler always > 1

Postby Giovanni » Tue Apr 27, 2021 5:52 am

Hi,

You should be able to set the prescaler in mcuconf.h, see STM32_ADC_PRESCALER_VALUE.

Giovanni

Alex
Posts: 33
Joined: Sat Feb 22, 2014 2:40 pm
Been thanked: 3 times

Re: STM32L052 ADC driver prescaler always > 1

Postby Alex » Tue Apr 27, 2021 6:25 am

if STM32_ADC_PRESCALER_VALUE < 2
#error "Invalid value assigned to STM32_ADC_PRESCALER_VALUE"

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L052 ADC driver prescaler always > 1

Postby Giovanni » Tue Apr 27, 2021 8:04 am

Moving in "bug reports".

Giovanni

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L052 ADC driver prescaler always > 1

Postby Giovanni » Sun Dec 05, 2021 10:44 am

bumping as self-reminder

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: STM32L052 ADC driver prescaler always > 1

Postby Giovanni » Fri Mar 18, 2022 10:38 am

Hi,

Fixed as bug #1230.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 15 guests