Hi CircuitDojo Community,
I’m working on the nrf9160 to be used as a remote device to enable/disable other power systems and is connected to a small battery. When testing current draw using the configuration and following the instructions here (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_power_opt.html) the device draw an average of 7.65ma when running the blinky script, rather than the 600 µA suggested. Turning off serial logging also had a negligible effect on the current draw. Following your other “low power” scripts also seemed to have no effect and the current remained around 7.65ma.
Currently, I do not have the external development chip and so am flashing the chip with CONFIG_BOOTLOADER_MCUBOOT=y using the terminal command “newtmgr -c serial image upload build/zephyr/app_update.bin”.
Any suggestions as to why this is occurring or what to test/investigate would be much appreciated.
Jesse
CMakeLists.txt:
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.13.1)
# Adding custom overlay to add settings that aren't included in the SDK (yet) for the nRF9160 Feather
if(${BOARD} STREQUAL circuitdojo_feather_nrf9160ns)
message(STATUS "Adding .overlay for mcuboot.")
list(APPEND mcuboot_DTC_OVERLAY_FILE
"${CMAKE_CURRENT_LIST_DIR}/conf/mcuboot/circuitdojo_feather_nrf9160ns.overlay"
)
endif()
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
project(blinky)
target_sources(app PRIVATE src/main.c)
prj.conf:
CONFIG_GPIO=y
# Enable Zephyr application to be booted by MCUboot
CONFIG_BOOTLOADER_MCUBOOT=y
overlay
/ {
aliases {
bootloader-led0 = &blue_led;
};
};
// Full speed ahead
&uart0 {
status = "okay";
current-speed = <1000000>;
tx-pin = <6>;
rx-pin = <5>;
};
src/main.c -> the default blinky main