Other Parts Discussed in Thread: TIMAC, CC2531, Z-STACK
I'm having a problem with sleep mode with TIMAC Version 1.5.0 (May 09, 2013).
What my application does:
- activate WDT mode at 1s interval
- keep resetting WDT every 500ms
- go to low power mode using `osalApi_PowerMgr(TRUE)`
- keep sampling sensors (motion sensor) at 100ms interval
- send HF event packet on motion detection
- send HF alive packet every 30 minutes
My observations:
- normally, the device has 0,2-2mA (depending on sensors) in low power mode and I see peaks in the power consumption every 100ms (sampling) and 500ms (WDT reset)
- after 4-10 hours of operation, the device seems to be in dead-state...
- stops showing those peaks
- no reaction on sensors (motion), no HF event packet send
- stops sending HF packet every 30 minutes
- I see a flat current consumption around 0,2-2mA
- the WDT does not pull a hardware RESET (could be off due to PM3, i.e. 32khz XOSC clock OFF??). Before dead-state, the WDT is active and working (tested by for(;;))
- when hitting a button/switch (interrupt), the device continues with its normal operation
- when adding `osal_pwrmgr_task_state(myTask , PWRMGR_HOLD)`, the device does not go into low power mode at all, and the dead-state does not occur
- when I activate UART-based debug output (seconds ticker), the dead-state does not occur

My questions:
- what does the function osalApi_PowerMgr(TRUE) do exactly?
- Does it activate PM2 or PM3?
- does it deactivate tasks?
- which idle intervall is nedded before going into lowPowerMode?
Thanks & best regards,
Timo