Search found 87 matches
- Mon Jun 26, 2023 6:24 pm
- Forum: Bug Reports
- Topic: stm32_lse.inc -- small bug/feature Topic is solved
- Replies: 4
- Views: 4334
Re: stm32_lse.inc -- small bug/feature Topic is solved
6 cycles at 1khz is a long time. When using standby mode, the whole life cycle is 1) go to standby, 2) wake on event, 2) do something quickly 34go back to standby. So this wait is completely incompatible with minimum power. The tags I build average 200nA when not collecting data and 500nA when colle...
- Mon May 22, 2023 7:10 pm
- Forum: Bug Reports
- Topic: oslib/include/chmemchecks.h Topic is solved
- Replies: 1
- Views: 1584
oslib/include/chmemchecks.h Topic is solved
If you define
#if CH_CFG_USE_MEMCHECKS == FALSE
/* Stub implementations for when the functionality is disabled, areas are
always reported as valid.*/
then linking fails because the stubs are not defined as static
#if CH_CFG_USE_MEMCHECKS == FALSE
/* Stub implementations for when the functionality is disabled, areas are
always reported as valid.*/
then linking fails because the stubs are not defined as static
- Fri May 19, 2023 9:56 pm
- Forum: Bug Reports
- Topic: stm32_lse.inc -- small bug/feature Topic is solved
- Replies: 4
- Views: 4334
stm32_lse.inc -- small bug/feature Topic is solved
I think the following code: __STATIC_INLINE void lse_init(void) { #if STM32_LSE_ENABLED /* LSE activation.*/ #if defined(STM32_LSE_BYPASS) /* LSE Bypass.*/ RCC->BDCR |= STM32_LSEDRV | RCC_BDCR_LSEON | RCC_BDCR_LSESYSEN | RCC_BDCR_LSEBYP; #else /* No LSE Bypass.*/ RCC->BDCR |= STM32_LSEDRV | RCC_BDCR...
- Fri May 19, 2023 1:59 pm
- Forum: STM32 Support
- Topic: STM32_LSECLK_BYP_MIN
- Replies: 2
- Views: 1270
Re: STM32_LSECLK_BYP_MIN
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 lpti...
- Wed May 17, 2023 2:32 pm
- Forum: STM32 Support
- Topic: STM32_LSECLK_BYP_MIN
- Replies: 2
- Views: 1270
STM32_LSECLK_BYP_MIN
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 s...
- Thu Mar 30, 2023 9:24 pm
- Forum: Bug Reports
- Topic: stm32l412
- Replies: 8
- Views: 4101
Re: stm32l412
This is from AN4759 "When the system is woken up from low-power modes (SYSCLK was off, consequently, the APB clock was off too), the application must first clear RSF, and then wait until RSF is set again before reading the calendar registers. This ensures that the value read by the application ...
- Fri Mar 17, 2023 1:54 pm
- Forum: Bug Reports
- Topic: stm32l412
- Replies: 8
- Views: 4101
Re: stm32l412
Thanks. One of my issues (perhaps the major one) is that I had to modify the rtc related files because of the busy waiting that the stock code does on read -- rare, but can take and RTC time tick. Instead, I use the approach of reading the time registers twice and checking for rollover. Basically, I...
- Thu Mar 16, 2023 9:34 pm
- Forum: Bug Reports
- Topic: stm32l412
- Replies: 8
- Views: 4101
Re: stm32l412
Looks like upgrading to ChibiOS 20.3 to the latest to get support from stm32l412 is a major lift (I've go a lot of projects on 20.3 that are interrelated). Anybody have the necessary headers for stm32l412 that are compatible with 20.3?
- Thu Mar 16, 2023 6:11 pm
- Forum: Bug Reports
- Topic: stm32l412
- Replies: 8
- Views: 4101
stm32l412
Does anybody have a working example using the stm32L412? I've had to upgrade to the latest ChibiOS to find any support, but I don't have an example of the correct configuration files
Geoffrey
Geoffrey
- Sun Feb 13, 2022 10:10 pm
- Forum: STM32 Support
- Topic: Waking from standby mode with RTC alarms
- Replies: 3
- Views: 1615
Re: Waking from standby mode with RTC alarms
I'm not really suggesting a change. It's just that standby mode changes how events and interrupts should be handled -- in fact interrupts shouldn't be used at all for any wake up event. For example, in the case of using RTC events (alarms, timer) it's important not to initialize the interrupt handle...