cancel
Showing results for 
Search instead for 
Did you mean: 

Another stop mode question

jeba
Associate II
Posted on June 02, 2010 at 22:25

Another stop mode question

8 REPLIES 8
Posted on May 17, 2011 at 13:53

STANDBY is the lowest power mode the RTC ALARM and WKUP will bring it back. It can also be exited with the Watchdog Reset as is I recall, which would permit fractions of a second.

12-bit down counter off 40 KHz LSI, at /256 the max timeout is about 26 seconds, at /4 the minimum tick is 100 us, so 100 ticks would be 10ms.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jeba
Associate II
Posted on May 17, 2011 at 13:53

Yes I have seen that CPU can exit STANDBY mode through IWDG RESET according to table 8. 4.3 RM. But this will make the CPU reset right? I'm not sure we want that. But am I right that the CPU can only exit STOP mode through the RTC alarm?

Thanks for the information so far.

BR

Jens

Posted on May 17, 2011 at 13:53

As I understand it you can exit STOP via *ANY* EXTI, there are at least 16 other pins/sources you can monitor, including USART / TIMER input pins.

Yes the watchdog resets the processor, that might not fit into your implementation model, but certainly is a viable method. Sure you have to turn peripherals off, and then back on later, but it's that where the real power is going anyway?

Also consider using WFI, it is the equivalent to the classic HALT implementation when the processor idles until the next interrupt. The peripherals keep running, and you can set up a 10ms (or whatever) ticker. Clock the part at the slowest rate you application will permit.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jeba
Associate II
Posted on May 17, 2011 at 13:53

Hello,

Yes by using WFI CPU wakes up from STOP mode when the systick interrupt occurs. Thanks

jeba
Associate II
Posted on May 17, 2011 at 13:53

As I wrote in the earlier comment, CPU wakes up from stop mode on the systick interrupt. BUT only if I have the Jtag debugger connected to target.

If I run the target with power supply only, it seems that systick is never enabled.

Why is that and how can I make the systick work eventhough the debugger is not connected.

Many thanks for any help.

jeba
Associate II
Posted on May 17, 2011 at 13:53

As I wrote in the earlier comment, CPU wakes up from stop mode on the systick interrupt. BUT only if I have the Jtag debugger connected to target.

If I run the target with power supply only, it seems that systick is never enabled.

Why is that and how can I make the systick work eventhough the debugger is not connected.

Many thanks for any help.
mn2
Associate II
Posted on May 17, 2011 at 13:53

Hi, SYSTICK interrupt does not wakeup the CPU from stop mode. It is a bug not a feature. You must use RTC instead of SYSTICK. RTC alarm interrupt can wakeup the cpu from stop mode.

Check also for newest errata sheet (debugging stop mode with WFE/WFI entry.

kolwas
Associate II
Posted on May 17, 2011 at 13:53

It's not true . We are using WFI in our OS when we have nothing to do and it's just working. We use it on M3 processor.