This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Putting bl654 in sleep mode

Hi all

How to put BL654 in deep sleep mode and standby doze mode using nordic nrf52840 ?? Also how to turn the system off?? 

Thanks 

Parents
  • Hi

    Depending on whether you're using the SoftDevice or not, there are a few ways to do this.

    No SoftDevice:

    • System ON mode. You can create a power manage function, consisting of __WFE(); __SEV(); __WFE();.
    • System OFF mode. You can call NRF_POWER->SYSTEMOFF = 1;

    SoftDevice enabled:

    • System ON mode. Call sd_app_evt_wait();
    • System OFF mode. Call sd_power_system_off();

    Best regards,

    Simon

Reply
  • Hi

    Depending on whether you're using the SoftDevice or not, there are a few ways to do this.

    No SoftDevice:

    • System ON mode. You can create a power manage function, consisting of __WFE(); __SEV(); __WFE();.
    • System OFF mode. You can call NRF_POWER->SYSTEMOFF = 1;

    SoftDevice enabled:

    • System ON mode. Call sd_app_evt_wait();
    • System OFF mode. Call sd_power_system_off();

    Best regards,

    Simon

Children
  • Hi thanks 

    The soft device is enabled. I'm trying to use sd_app_evt_wait(); but the current consumption is 1.7 mA which is too high for sleep/doze mode. What could be the reason for this?  I have not configured any gpio and i am using following code. 

    main()

    {

    while(1)

    {

     sd_app_evt_wait();

    }

    }

    These are some  of the module enabled in sdk

    BLE DB DISCOVERY ENABLED
    NRF BLE GATT ENABLED
    NRF BLE QWR ENABLED
    NRF BLE SCAN ENABLED
    PM CENTRAL ENABLED
    PM SERVICE CHANGE ENABLED
    PM PEER RANKS ENABLED
    NRF CRYPTO ENABLED
    GPIOTE ENABLED
    NRFX CLOCK ENABLED
    NRFX GPIOTE ENABLED
    NRFX PRS ENABLED
    NRFX PWM ENABLED
    NRFX PWM0 ENABLED
    NRFX PWM1 ENABLED
    NRFX RTC ENABLED
    NRFX SPIM ENABLED
    NRFX SPI ENABLED
    NRFX SPI0 ENABLED
    NRFX SPI1 ENABLED
    NRFX TIMER ENABLED
    NRFX TWI ENABLED
    NRFX TWI0 ENABLED
    NRFX UARTE ENABLED
    NRFX CLOCK ENABLED
    NRFX PPI ENABLED
    NRFX PWM ENABLED
    PWM0 ENABLED
    RTC ENABLED
    RTC2 ENABLED
    SPI ENABLED
    SPI1 ENABLED
    SPI USE EASY DMA
    SPI2 ENABLED
    TIMER ENABLED
    TIMER0 ENABLED
    TIMER1 ENABLED
    TWI ENABLED
    TWI0 ENABLED
    TWI0 USE EASY DMA
    UART ENABLED
    UART0 ENABLED
    APP PWM ENABLED
    APP SCHEDULER ENABLED
    APP TIMER ENABLED

Related