This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF5340-DK Low Power Configuration Issues

Hi,

I am performing some evaluation on the low power capabilities of the nRF5340 using the DK and the PPK v1.

I have written a really basic BLE Peripheral Application based loosely around the peripheral_lbs sample code as I want to test with a button handler eventually.

The problem I have is that after considerable configuration, I can only get the current floor down to ~200uA with an average current of ~215uA with a 1.2 second advertising interval. I've seen a lot of people on here talk about seeing much, much lower currents so wondered is there a configuration that I am missing perhaps?

I have been reading the documents and a few threads on here to understand how to configure the device and I have done the following.

  1. My main application, running on the NS partition, has been configured as follows:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    CONFIG_NCS_SAMPLES_DEFAULTS=y
    CONFIG_BT=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_DEVICE_NAME="MH_TEST"
    # Enable the LBS service
    CONFIG_BT_LBS=y
    CONFIG_BT_LBS_POLL_BUTTON=y
    CONFIG_DK_LIBRARY=y
    # Drivers and peripherals
    CONFIG_I2C=n
    CONFIG_WATCHDOG=n
    CONFIG_GPIO=n
    CONFIG_PINMUX=n
    CONFIG_SPI=n
    CONFIG_SERIAL=n
    # Power management
    CONFIG_DEVICE_POWER_MANAGEMENT=y
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


  2. I have added an spm.conf

    Fullscreen
    1
    2
    3
    4
    CONFIG_IS_SPM=y
    CONFIG_FW_INFO=y
    CONFIG_GPIO=y
    CONFIG_SERIAL=n
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    and added that to the CMakeLists.txt

    Fullscreen
    1
    set(spm_CONF_FILE ${CMAKE_CURRENT_SOURCE_DIR}/spm.conf)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


  3. I have also configured the hci_rpmsg via the menuconfig to turn off logging

  4. I also tried turning on Power Management via the SPM and HCI_RPMSG's menuconfig's as well but it did not seem to have any effect. 

As for my source code, I have attached it. I simply setup the BLE and handlers and then call:

Fullscreen
1
2
3
for (;;) {
k_cpu_idle();
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

If we look at the PPK, I see this:

where my baseline current seems to be around 200uA - from what I had read around, I would have expected to be able to get it lower than this, so I imagine I must be configuring something incorrectly. 

If you had any advice, it would be appreciated!

nRF Connect SDK: v1.6.1


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <sys/printk.h>
#include <sys/byteorder.h>
#include <zephyr.h>
#include <drivers/gpio.h>
#include <soc.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/conn.h>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX