Skip to main content
CKim.18
Associate
September 17, 2020
Question

Enter deep sleep problem of the BlueNrg-2 FreeRTOS

  • September 17, 2020
  • 2 replies
  • 939 views

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
November 17, 2020

have you solved this problem?

ANath.1
Associate II
May 5, 2021

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