AnsweredAssumed Answered

RTC Wakeup from Stop state on system running tim interrupt - Possible?

Question asked by Assaf on Oct 27, 2016
Latest reply on Oct 28, 2016 by Assaf
Hi All!

Edit : i'm using dicovery board STM32F429I-DISCO.

i'm tying to combine 2 examples from ST CUBEF4 Firmware Package V1.10:
1. TIM - peridoc activity, every 0.5 seconds toggle LED3.
2. PWR - get system into sleep on stop mode.

the combination i did was after 5 toggles (tick counter) call SleepMode_Measure() :
five_tickscounter ++;
if (five_tickscounter >5)
  five_tickscounter = 0;

(just copy & paste all relevant functions from PWR example)

for some reason, the system does not wakeup from stop mode.
Debugger is not available from the point where system is going to stop mode
any help would be much appriciated.

what this means is that the system goes to sleep during interrupt - do i need to initialize any timer interrupt? or something else in order to make it work. . .

Thank You