I can't switch the module to power save mode

Solved
synergotech's picture
synergotech
Junior(0)

I've tried fuctions: platform_mcu_powersave_init()  and  platform_mcu_powersave_enable() but the MCU still works (should sleep). What is the proper procedure (step by step) to enter power save mode?

PeterF's picture
PeterF
Moderator(16)

For more on this topic, take a look at the Powersave snip examples in WICED SDK as well as the Powersave Application Note from Broadcom (attached below)

Attachments: 
synergotech's picture
synergotech
Junior(0)

Ok, now I can switch MCU to sleep mode, but only for a given amount of time - only when wiced_rtos_delay_milliseconds() is called. How to wake the MCU and resume the network by external interrupt? These interrupts work during sleep (wake the MCU) but I can't break the function wiced_rtos_delay_milliseconds(), so when interrupt service routine finishes, the MCU goes sleep again.  Crazy!!!

synergotech's picture
synergotech
Junior(0)

OK, I've found a solution - I used a semaphore instead of delay. Now it works as I wanted :)