Skip to main content
CKim.18
Associate
Sep 17, 2020 12:01 AM UTC
Question

Enter deep sleep problem of the BlueNrg-2 FreeRTOS

Please let me know below the below status and can't enter deep sleep by Bluenrg-2 FreeRTOS.

​

1.vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )

2. BlueNRG_Sleep(SleepModes sleepMode, uint8_t gpioWakeBitMask, uint8_t gpioWakeLevelMask)

3.ble_sleepMode = (SleepModes)BlueNRG_Stack_Perform_Deep_Sleep_Check();

​

The "ble_sleepMode" value is always "SLEEPMODE_RUNNING". because not enter Deep Sleep function

​

  if (sleepMode_allowed == SLEEPMODE_RUNNING) {

    ATOMIC_SECTION_END();

  return SUCCESS;

}

​Thanks, CK

This topic has been closed for replies.

2 replies

reokyouma
Associate III
Nov 17, 2020 2:18 AM UTC

have you solved this problem?

ANath.1
Associate II
May 5, 2021 12:00 PM UTC

For those facing this problem, you need to call BTLE_StackTick() before calling the BlueNRG_Sleep()