Search found 20 matches

by Bambo
Thu May 21, 2020 10:06 am
Forum: General discussion
Topic: std::function / STL usage?
Replies: 3
Views: 1016

std::function / STL usage?

Hi,

I noticed in the new version of STM32duino version 1.9.0 that in the file WInterrupts.h, the std::function() is used. How does this compile? i thought that Arduino doesn't support STL?
by Bambo
Wed May 20, 2020 10:47 am
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

Re: What causes the stm32 RTC to reset?

Ok so i've added the setClockSource() to the RTC code but now it doesn't restart at all once shutdown is called? Here is the code i'm using to test it. #include <STM32RTC.h> #include <STM32LowPower.h> STM32RTC& rtc = STM32RTC::getInstance(); volatile bool sleeping = false; void callback(void* data) ...
by Bambo
Mon May 04, 2020 12:55 pm
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

Re: What causes the stm32 RTC to reset?

ok thank you, do you know what impact using the LSE clock for the RTC will have? does it affect TIM3 or any other timers? Thanks again.
by Bambo
Wed Apr 29, 2020 11:10 am
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

Re: What causes the stm32 RTC to reset?

Additionally if you use LowPower.deepSleep() the unit carries on processing, you have to use something like this: #include <STM32RTC.h> #include <STM32LowPower.h> STM32RTC& rtc = STM32RTC::getInstance(); volatile bool sleeping = false; void callback(void*data) { sleeping = false; Serial.println("Cal...
by Bambo
Wed Apr 29, 2020 10:30 am
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

Re: What causes the stm32 RTC to reset?

It says in the documentation that the RTC doesn't reset over reboots, but when the unit reboots the RTC is reset?

See: https://github.com/stm32duino/STM32RTC at the bottom "Reset time management By default, if a time is set it will not be reset after a reboot."
by Bambo
Mon Apr 27, 2020 9:24 am
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

Re: What causes the stm32 RTC to reset?

Looks like when you use LowPower.shutdown() it also resets the RTC
by Bambo
Mon Apr 27, 2020 8:33 am
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 12
Views: 3474

What causes the stm32 RTC to reset?

Hi, i have a question about the RTC library, what would cause the RTC to reset?
by Bambo
Fri Apr 17, 2020 2:45 pm
Forum: General discussion
Topic: Does LowPower Shutdown() reset the internal RTC?
Replies: 8
Views: 2297

Re: Does LowPower Shutdown() reset the internal RTC?

Nice! thanks, yes this is custom code, i made a system that does POST checking and calls this Ready() when its done. Thanks for debugging i will test it :)
by Bambo
Fri Apr 17, 2020 11:05 am
Forum: General discussion
Topic: Does LowPower Shutdown() reset the internal RTC?
Replies: 8
Views: 2297

Re: Does LowPower Shutdown() reset the internal RTC?

On my test bench, the LowPower.shutdown() reboot causes the rtc.isTimeSet() to return false even if it was preivously set? Am i doing something logically wrong here? void AlarmFunc(void* data) { Serial3.println("Woke"); Serial3.flush(); } void ready() { STM32RTC& rtc = STM32RTC::getInstance(); rtc.b...

Go to advanced search