STM32 Sleep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 4:02 AM
What is the best way to put STM32L0 micro-controllers to sleep for limited time duration(preferably using RTC)?
#stm32l0 #stm32-sleep- Labels:
-
Power
-
STM32L0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 4:14 AM
There is no such thing as 'best' - it all depends on your particular requirements.
It is a tradeoff between
- current consumption while in sleep;
- functionality while in sleep;
- available wakeup triggers;
- time taken to 'wake up' from sleep;
- amount of reconfiguration required to enter & exit sleep;
- etc...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 5:18 AM
Well, in that case, I would like to wake the controller on an RTC timeout and would like to have low power consumption(not the least, functionality is priority). Is this possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 5:41 AM
So have you looked at the Datasheet and Reference Manual - they list & describe the available 'sleep' modes ...
The STM32L0x2 Reference Manual, at least, has code examples at the end ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 9:08 AM
Pretty sure the LRWAN implementation is illustrative of the RTC being used as the primary timebase, placing the device into SLEEP state(s)
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 10:19 AM
Yes, it is - though rather a lot to wade through just for an example of SLEEP ... !!
:(
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 10:21 AM
But the mechanics are at least fully explored. And the OP was using the LoRa L0 code previously.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 10:37 AM
Oh yes - so he did:
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 10:46 AM
Even though my recent work has been on LoRa discovery board and on LoRa, I just wanted to know best possible way for STM32 controllers to go to sleep and wakeup. Also, right now I am still on LoRa stack and wish to best utilize the sleep options available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-29 10:54 AM
Again, 'best' is meaningless - unless accompanied by a specific set of criteria by which to judge it.
If there was just one single 'best' option - why would the chip provide any others?
A complex system designed from scratch never works and cannot be patched up to make it work.
