cancel
Showing results for 
Search instead for 
Did you mean: 

Enter deep sleep problem of the BlueNrg-2 FreeRTOS

CKim.18
Associate II

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

2 REPLIES 2
reokyouma
Associate III

have you solved this problem?

ANath.1
Associate III

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