2021-05-04 12:13 PM
I'm working with the SMT32l072 and in my application the board runs the main routine them it stays in standby until the RTC Timer (5 minutes) or the RTC Tamper detection (A sensor that pulls down the pin) wakes the board. The thing is that when the board wakes by the tamper I need, after processes some data, to put it back to sleep for the remaining time in the RTC Wake up timer. But I can't figure out how to do it, Anyone can give me a hand?
Solved! Go to Solution.
2021-05-04 01:46 PM
Save the RTC timestamp prior to going into standby mode and read it again upon exiting.
2021-05-04 01:46 PM
Save the RTC timestamp prior to going into standby mode and read it again upon exiting.
2021-07-25 07:46 AM
This may help.
On a lot of microprocessors you can see the 'running' activity on the supply line as 'fuzz' and idle as quiet.
I don't know if that words with the ARM and/or STM32L0xx ... it was partly my attempt to do that that made me see that I have _huge_ ripple on the supply line, but I can't presently see why.
That certainly isn't working on my L081.
Uwe Bonnes' answer certainly does. There's a lot to be said for driving such a pin permanently and possibly adding an LED to it, much as one might do for comms to show messages passing.
2021-07-26 02:27 AM
Set/reset a pin on standby entry/exit and look with a scope.
2021-07-26 04:58 AM
Cortex M3/4 parts also often provide a Sleep cycles in the DWT. L0 does not provide.
2021-07-26 07:02 AM
I solved it a while ago using the RTC time stamp. I saved one before going to sleep and compare it with another wen the board wakes.
Thanks for all the help you guys provided.
2021-07-26 07:04 AM
That would not work. The device had to know the time by itself.