Problem with sleep mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

LE stack does not switch to sleep mode if the fine timer's timeout is set to 12 ms even when the fine timer is stopped.

The current is around 1mA what makes me think that chip is still only in Pause mode.

0 Likes
1 Solution
Anonymous
Not applicable

Hello madmax

From the developers:

Please see if the following code snippet resolves your issue:

#include "devicelpm.h"

UINT32 app_queryPowersave(LowPowerModePollType type, UINT32 context)
{
    if (type == LOW_POWER_MODE_POLL_TYPE_SLEEP)
    {
        // Always allow sleep and let the FW decide actual sleep time.
        return ~0;
    }

    // Never allow deep sleep/hid-off.
    return 0;
}

void application_create(void)
{
    // Do all other application initialization here.

    // Override default implementation of the app queriable:
    bleprofile_queryPowersaveCb = app_queryPowersave;
}

Thanks

JT

View solution in original post

0 Likes
5 Replies