Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Low Power Mode with ThreadX

$
0
0

If you are using the LPMv2 driver with ThreadX and seeing unexpected behavior, read on:

ThreadX expects to place the MCU in sleep mode when no other tasks running (only idle loop runs) or tx_thread_sleep() is called.  However, if lowPowerCfg() configures the MCU with standby, deep standby, or standby with snoozeenabled and enters into idle loop or tx_thread_sleep() is called, MCU is put into the one of these low power modes (and not sleep mode) that may not wake up from or behaves unexpectedly.  

To fix this, the low power mode should be reverted to sleep mode after the MCU wakes from standby, after returning from the lowPowerModeEnter().  Use the lowPowerCfg() function to re-configure the low power mode immediately before the lowPowerModeEnter() to enter into standby mode.  

 


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>