2018-01-29 04:02 AM
What is the best way to put STM32L0 micro-controllers to sleep for limited time duration(preferably using RTC)?
#stm32l0 #stm32-sleep2018-01-29 04:14 AM
There is no such thing as 'best' - it all depends on your particular requirements.
It is a tradeoff between
2018-01-29 05: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?
2018-01-29 05: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 ...
2018-01-29 09: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)
2018-01-29 10:19 AM
Yes, it is - though rather a lot to wade through just for an example of SLEEP ... !!
:(
2018-01-29 10:21 AM
But the mechanics are at least fully explored. And the OP was using the LoRa L0 code previously.
2018-01-29 10:37 AM
Oh yes - so he did:
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.
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?