STM32_LSECLK_BYP_MIN

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

geoffrey.brown
Posts: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

STM32_LSECLK_BYP_MIN

Postby geoffrey.brown » Wed May 17, 2023 2:32 pm

I've been using 20.3x for several years and looking to switch to 21.11x. I noticed that for the STM32L4 in hal.lld.h the following definition exists

#define STM32_LSECLK_BYP_MIN 32768

In fact I use (quite successfully) a 1024 Hz LSE -- the output of an rv-3028 RTC which leads to a much lower power solution than any alternative. I'm wondering where this constant comes from and what the implications are.

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

Re: STM32_LSECLK_BYP_MIN

Postby Giovanni » Wed May 17, 2023 5:23 pm

Hi,

Those kind of numbers are taken from the datasheet, frequencies below 32k are not specified for some reason.

Giovanni

geoffrey.brown
Posts: 87
Joined: Thu May 07, 2015 9:47 pm
Has thanked: 3 times
Been thanked: 15 times

Re: STM32_LSECLK_BYP_MIN

Postby geoffrey.brown » Fri May 19, 2023 1:59 pm

Thanks! Just as a point of reference, with an rv3028 driving the STM32L43x RTC at 1024 hz, I get standby currents under 200nA and frequency accuracy of 1ppm (at 25C, but the temperature on the back of a bird is pretty close to 39C) while being able to use the stm32 alarms and, in stop mode, the lptimer.

Geoffrey


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 16 guests