Search found 405 matches

by GonzoG
Wed Jun 03, 2020 8:11 pm
Forum: General discussion
Topic: Sleep modes for STM32F1
Replies: 5
Views: 9825

Re: Sleep modes for STM32F1

Official ST low power library:
https://github.com/stm32duino/STM32LowPower
All low power modes are explained there also.
The most power efficient mode without loosing RAM is deepsleep.
by GonzoG
Tue May 26, 2020 2:52 pm
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 18
Views: 13686

Re: What causes the stm32 RTC to reset?

Bambo wrote: Wed May 20, 2020 10:47 am Ok so i've added the setClockSource() to the RTC code but now it doesn't restart at all once shutdown is called?
"rtc.setClockSource(STM32RTC::LSE_CLOCK); " needs to be called before rtc.begin();
all about rtc library:
https://github.com/stm32duino/STM32RTC
by GonzoG
Sun May 10, 2020 11:06 pm
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 18
Views: 13686

Re: What causes the stm32 RTC to reset?

It's just source for RTC, nothing else.
Don't know what board you're using, but with blue pills I found built-in RTC unreliable, probably due to bad quality oscillators.
by GonzoG
Sun May 03, 2020 10:29 pm
Forum: General discussion
Topic: What causes the stm32 RTC to reset?
Replies: 18
Views: 13686

Re: What causes the stm32 RTC to reset?

You need to set RTC source to LSE if you want it to work in shutdown mode or without power (just with RTC battery).
by GonzoG
Sat Jan 25, 2020 12:08 am
Forum: General discussion
Topic: Blue pill current usage
Replies: 8
Views: 9856

Re: Blue pill current usage

It all depends on what peripherals you have enabled as each one of them uses power if enabled.
I get from about 30 to 50mA (with 1.3" OLED).

I've attached page from stm32f103x8 datasheet with graphs showing current consumption.
each LED on blue pill board uses about 2mA.

Go to advanced search