Current consumption increased after adding WIFI

Hello,

We’re using a custom board with the nRF9160 as the main chip and the nRF7000 as the Wi-Fi chip.

Before adding support for the nRF7000, the idle current was 240 µA. After adding it, the idle current increased to 1.86 mA.

Here’s the Wi-Fi configuration file:

overlay-nrf7000-wifi-scan-only.conf

# Actual configs for the Wi-Fi
CONFIG_WIFI=y
CONFIG_WIFI_NRF70=y
CONFIG_WIFI_NRF70_SKIP_LOCAL_ADMIN_MAC=y
# Align this with CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT
CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT=10
# Wi-Fi location
CONFIG_LOCATION_METHOD_WIFI=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_WIFI=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_SECOND_GNSS=y
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_THIRD_CELLULAR=y

# Align this with CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT
CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT=10

# Not for LTE throughput testing
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=4096
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=4096

CONFIG_NRF_WIFI_2G_BAND=y
CONFIG_NRF_WIFI_5G_BAND=n
CONFIG_NRF_WIFI_LOW_POWER=y

# System settings
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

# Scan only using offload API
CONFIG_WIFI_NM_WPA_SUPPLICANT=n

# For nRF9160 the default is socket interface
CONFIG_NET_DEFAULT_IF_ETHERNET=y
CONFIG_MBEDTLS=n
CONFIG_NORDIC_SECURITY_BACKEND=n

# Networking
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_NATIVE=y
CONFIG_NET_DHCPV4=y
#CONFIG_NET_STATISTICS=y
#CONFIG_NET_STATISTICS_WIFI=y
#CONFIG_NET_STATISTICS_USER_API=y
#CONFIG_NET_CONTEXT_SYNC_RECV=y
# Disable unused networking options
CONFIG_NET_IPV6=n

# Memory configurations
CONFIG_NET_BUF_RX_COUNT=1
CONFIG_NET_BUF_TX_COUNT=1
CONFIG_NET_PKT_RX_COUNT=1
CONFIG_NET_PKT_TX_COUNT=1
CONFIG_NET_TX_STACK_SIZE=512
CONFIG_NET_RX_STACK_SIZE=512
CONFIG_NET_TC_TX_COUNT=1
CONFIG_NET_MAX_CONTEXTS=1
CONFIG_NET_MGMT_EVENT_STACK_SIZE=1024

CONFIG_WIFI_FIXED_MAC_ADDRESS="f2:01:d5:50:6f:52"

sysbuild.conf

SB_CONFIG_WIFI_NRF70=y
SB_CONFIG_WIFI_NRF70_SCAN_ONLY=y


The log from the wifi_nrf_bus:
[00:00:00.252,532] <dbg> wifi_nrf_bus: rpu_gpio_config: GPIO configuration done...

[00:00:00.254,760] <dbg> wifi_nrf_bus: rpu_pwron: Bucken = 0, IOVDD = 0
[00:00:00.254,821] <inf> wifi_nrf_bus: SPIM spi@b000: freq = 8 MHz
[00:00:00.254,852] <inf> wifi_nrf_bus: SPIM spi@b000: latency = 0
[00:00:00.254,943] <dbg> wifi_nrf_bus: rpu_wrsr2: Written 0x1 to WRSR2
[00:00:00.255,065] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 1 1 1 1 1
[00:00:00.255,065] <dbg> wifi_nrf_bus: spim_wait_while_rpu_wake_write: RDSR2 = 0x1
[00:00:00.255,187] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:00.255,218] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:00.256,408] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:00.256,408] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:00.257,629] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:00.257,629] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:00.258,850] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:00.258,850] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:00.260,070] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 2 2 2 2 2
[00:00:00.260,070] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x2
[00:00:00.260,223] <dbg> wifi_nrf_bus: rpu_clks_on: RPU Clocks ON...
[00:00:00.260,375] <dbg> wifi_nrf_bus: rpu_validate_comms: RPU comms test passed

[00:00:00.321,746] <dbg> wifi_nrf_bus: rpu_irq_config: Finished Interrupt config

[00:00:00.321,838] <dbg> wifi_nrf_bus: rpu_wrsr2: Written 0x1 to WRSR2
[00:00:00.321,960] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> fe 1 1 1 1 1
[00:00:00.321,990] <dbg> wifi_nrf_bus: spim_wait_while_rpu_wake_write: RDSR2 = 0x1
[00:00:00.322,082] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 6 6 6 6 6
[00:00:00.684,326] <inf> app_event_manager: MODEM_EVT_INITIALIZED
[00:00:00.780,334] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTING
[00:00:00.781,463] <inf> app_event_manager: LED_STATE_LTE_CONNECTING
[00:00:01.458,099] <inf> app_event_manager: DATA_EVT_CONFIG_INIT
[00:00:02.718,475] <inf> app_event_manager: MODEM_EVT_LTE_CELL_UPDATE
[00:00:04.601,409] <inf> app_event_manager: MODEM_EVT_LTE_CONNECTED
[00:00:04.602,569] <inf> app_event_manager: LED_STATE_LTE_CONNECTED
[00:00:04.702,728] <inf> app_event_manager: MODEM_EVT_LTE_PSM_UPDATE
[00:00:04.703,796] <inf> app_event_manager: DATA_EVT_DATE_TIME_OBTAINED
[00:00:09.602,844] <inf> app_event_manager: MONTR_CLIENT_EVT_READY
[00:00:09.603,942] <inf> app_event_manager: LED_STATE_CLOUD_PUBLISHING
[00:00:09.604,217] <inf> app_event_manager: APP_EVT_DATA_GET - Requested data types (MOD_DYN, MOD_STAT, BAT, LOCATION)
[00:00:09.604,553] <inf> location: Wi-Fi and cellular methods combined
[00:00:09.605,316] <inf> app_event_manager: LOCATION_MODULE_EVT_ACTIVE
[00:00:09.606,109] <inf> app_event_manager: LED_STATE_LOCATION_SEARCHING
[00:00:09.606,933] <dbg> wifi_nrf_bus: rpu_wrsr2: Written 0x1 to WRSR2
[00:00:09.607,025] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 1 1 1 1 1
[00:00:09.607,055] <dbg> wifi_nrf_bus: spim_wait_while_rpu_wake_write: RDSR2 = 0x1
[00:00:09.607,147] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:09.607,177] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:09.608,367] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:09.608,398] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:09.609,588] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:09.609,619] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:09.610,809] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 0 0 0 0 0
[00:00:09.610,839] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x0
[00:00:09.612,030] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 2 2 2 2 2
[00:00:09.612,060] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x2
[00:00:09.613,250] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 2 2 2 2 2
[00:00:09.613,281] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x2
[00:00:09.614,105] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 6 6 6 6 6
[00:00:09.614,135] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x6
[00:00:09.624,511] <inf> app_event_manager: SENSOR_EVT_FUEL_GAUGE_READY
[00:00:09.656,372] <inf> app_event_manager: MODEM_EVT_MODEM_STATIC_DATA_READY
[00:00:09.693,115] <inf> app_event_manager: MODEM_EVT_MODEM_DYNAMIC_DATA_READY
[00:00:10.567,687] <dbg> wifi_nrf_bus: rpu_wrsr2: Written 0x1 to WRSR2
[00:00:10.567,779] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 1 1 1 1 1
[00:00:10.567,810] <dbg> wifi_nrf_bus: spim_wait_while_rpu_wake_write: RDSR2 = 0x1
[00:00:10.567,901] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 6 6 6 6 6
[00:00:10.567,932] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x6
[00:00:10.569,122] <dbg> wifi_nrf_bus: spim_read_reg: err: 0 -> 0 6 6 6 6 6
[00:00:10.569,152] <dbg> wifi_nrf_bus: _spim_wait_while_rpu_awake: RDSR1 = 0x6
[00:00:21.419,281] <inf> app_event_manager: LOCATION_MODULE_EVT_WIFI_AND_CELL_DATA_READY
[00:00:21.420,074] <inf> app_event_manager: LOCATION_MODULE_EVT_INACTIVE
[00:00:21.420,867] <inf> app_event_manager: LED_STATE_TURN_OFF
[00:00:21.421,203] <inf> app_event_manager: DATA_EVT_DATA_READY
[00:00:21.437,622] <inf> app_event_manager: DATA_EVT_DATA_SEND
[00:00:21.438,537] <inf> app_event_manager: LED_STATE_CLOUD_PUBLISHING
[00:00:26.438,629] <inf> app_event_manager: LED_STATE_LTE_CONNECTED
[00:00:30.560,913] <inf> montr_client_module: Response status: 200


I measured the voltage level on the IOVDD and BUKEN and there is constant 3.3V(I assume this one should be 0 after scan).

SDK 2.9.0.

Related