nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

nRF5340 low power on example peripheral_lbs ncs v1.6.1

Dear,

        I followed the ticket below to set peripheral_lbs for nRF5340.

but still cannot see the 8uA in power consumption.Would you help?

I also use nRF5340DK and multi-meter to measure the current in ncs v1.6.1.

https://devzone.nordicsemi.com/f/nordic-q-a/79490/nrf5340-dk-low-power-configuration-issues

  Attached my main.c and prj.conf and prj_minimal.conf.

at least I simply setup the BLE and handlers and then call:

for (;;) {
k_cpu_idle();
}

I am not sure whether need to add spm.conf and add add below change to the CMakeLists.txt

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

          I also not sure whether need to make the 3 change below:

Would you teach me how to add if need ?

1...I have added hci_rpmsg.conf in a folder in named child_image as described, copied ncs\v1.6.1\zephyr\samples\bluetooth\hci_rpmsg in and changed LOG and SERIAL to n

2.Added the following to my prj.conf

CONFIG_PM=y
CONFIG_PM_DEVICE=y

3.Disabled Uart0 and Uart1 in nrf5340dk_nrf5340_cpuappns.overlay

&uart0{

status="disabled";
};

&uart1{

status="disabled";
};

4.CONFIG_PM 


void pm_power_state_set(struct pm_state_info info)

Parents
  • Hi, 

    I have some questions after a quick look but haven't tested. 

    1...I have added hci_rpmsg.conf in a folder in named child_image as described, copied ncs\v1.6.1\zephyr\samples\bluetooth\hci_rpmsg in and changed LOG and SERIAL to n

    hci_rpmsg.conf should be located under peripheral_lbs\child_image. 

    2.Added the following to my prj.conf

    I see the CONFIG_PM=y and CONFIG_PM_DEVICE=y are added into your prj_minimal.conf instead of the prj.conf. Do you build with the prj_minimal.conf as this Minimal build section? What do you use to build the project, Segger, VScode or west build? How do you set to build with the prj_minimal.conf? 

    3.Disabled Uart0 and Uart1 in nrf5340dk_nrf5340_cpuappns.overlay

    Could you double-check that it was really built with the overlay? Just want to make sure the overlay is sourced. 

    Are you using PPK2? Do you cut SB40 as the Preparing the nRF5340 DK section described? What is the HW version (on the white sticker) of the nRF5340DK?

    Regards,
    Amanda 

  • Hi Amanda,

             1.I didn't found any file named "hci_rpmsg.conf" in the folder ncs\v1.6.1\zephyr\samples\bluetooth\hci_rpmsg.

    I only can see "prj.conf". this file don't have SERIAL . attached my prj.conf for your reference.

              2.I use west build -b nrf5340dk_nrf5340_cpuapp -d build_nrf5340dk_nrf5340_cpuapp -p -- -DCONF_FILE='prj_minimal.conf'   I use this to build for Minimal build by west build.

            3. I don't know how to found file "nrf5340dk_nrf5340_cpuappns.overlay", Would you teach me?

             

  • Hi, 

    1. Please create hci_rpmsg.conf and locate it under peripheral_lbs\child_image. You might also need to create a child_image folder under peripheral_lbs.

    2. The command looks correct. 

    3. If you build for nrf5340dk_nrf5340_cpuapp, then you should create "nrf5340dk_nrf5340_cpuapp.overlay" under peripheral_lbs. 

    -Amanda

Reply Children
Related