STM32 SleepMethod #178
-
Hello everyone! 1. I could make a simple example of blink with the LowPower.h to check LowPower and it is working:
2. Then I make a simple example of blink with TaskScheduler and works too:
3. Then I added this lines into TaskSchedulerSleepMethods.h
and main program:
But it seems the CPU goes to sleep but never wake up... I've been diving into the code but i could not find any clue why CPU doesn't wake up. I missing something definitely. Any suggestions?? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @dani68k here is a quick way how I did it. You should be able to do the same.
STM32 sleep (or rather many quick naps) is already implemented. but it seems you want a longer sleep method than wfi
Also, please make sure there is something (like a timer interrupt) that wakes stm32 up - TS does not control that aspect. And the last thing - a new version (still in testing) can report how much time is left until next task has to run - you can use that for sleeping longer. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Hello @dani68k, I'm trying to get in touch with you because I'm very interested in discussing your experience using the AS3933 device. Could you please provide me with a contact method? Thank you! |
Beta Was this translation helpful? Give feedback.
Hi @dani68k
You do not need to modify TaskSchedulerSleepMethods.h
here is a quick way how I did it. You should be able to do the same.
STM32 sleep (or rather many quick naps) is already implemented. but it seems you want a longer sleep method than wfi