Skip to content

Commit

Permalink
projectwide: Update sdk-nrf
Browse files Browse the repository at this point in the history
Update sdk-nrf

Signed-off-by: Simen S. Røstad <[email protected]>
  • Loading branch information
simensrostad authored and jtguggedal committed Oct 15, 2024
1 parent 162c5c0 commit d59b1a4
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 40 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ jobs:
echo "MEMFAULT_SW_TYPE=${{ inputs.memfault_sw_type }}" >> $GITHUB_ENV
fi
- name: Apply nrf_wifi HAL patch
run: git apply thingy91x-oob/scripts/nrf_wifi_hal_memory_leak_fix.patch --directory=nrfxlib

# Out-of-box firmware build

- name: Build nrf91 firmware
Expand Down Expand Up @@ -189,7 +186,6 @@ jobs:
- name: Apply Connectivity Bridge patch for debug feature
run: |
git apply thingy91x-oob/scripts/debug_feature_nrf.patch --directory=nrf
git apply thingy91x-oob/scripts/debug_feature_zephyr.patch --directory=zephyr
- name: Build nrf53 firmware
working-directory: nrf/applications/connectivity_bridge
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dfu_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
west config manifest.group-filter +bsec
west config build.sysbuild True
west update -o=--depth=1 -n
west blobs fetch hal_nordic
- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
west config manifest.group-filter +bsec
west config build.sysbuild True
west update -o=--depth=1 -n
west blobs fetch hal_nordic
- name: Install dependencies
run: |
Expand Down
10 changes: 0 additions & 10 deletions app/Kconfig.sysbuild

This file was deleted.

7 changes: 7 additions & 0 deletions app/boards/thingy91x_nrf9151_ns.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@

chosen {
nordic,modem-trace-uart = &uart1;
zephyr,wifi = &nordic_wlan0;
};
};

&uart1 {
status = "okay";
};


/* Switch to nrf7000 emulation so that scan-only mode is used. */
&nrf70 {
compatible = "nordic,nrf7000-spi";
};
1 change: 1 addition & 0 deletions app/overlay-memfault.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ CONFIG_MEMFAULT_NCS_DEVICE_ID_IMEI=y
CONFIG_MEMFAULT_NCS_PROJECT_KEY=""
CONFIG_MEMFAULT_LOGGING_RAM_SIZE=4096
CONFIG_MEMFAULT_HEAP_STATS=y
CONFIG_MEMFAULT_NCS_LOCATION_METRICS=y
CONFIG_MEMFAULT_HTTP_DEDICATED_WORKQUEUE_STACK_SIZE=1560
19 changes: 11 additions & 8 deletions app/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ CONFIG_RESET_ON_FATAL_ERROR=y
CONFIG_LOG_MODE_DEFERRED=y
CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_DK_LIBRARY=y
CONFIG_POSIX_MAX_FDS=10
CONFIG_ZVFS_OPEN_MAX=10
# CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=3808 ?
CONFIG_PWM=y

# Heap and stacks
Expand All @@ -19,6 +20,7 @@ CONFIG_MAIN_STACK_SIZE=4096
CONFIG_AT_MONITOR_HEAP_SIZE=2048
# Wifi scan requires extended heap size
CONFIG_HEAP_MEM_POOL_SIZE=40000
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1280

# Enable Networking and Connection Manager.
Expand Down Expand Up @@ -117,8 +119,8 @@ CONFIG_BUILD_S1_VARIANT=y
CONFIG_COAP_CLIENT_THREAD_PRIORITY=0
CONFIG_COAP_CLIENT_BLOCK_SIZE=1024
CONFIG_COAP_CLIENT_MESSAGE_SIZE=1024
CONFIG_COAP_CLIENT_STACK_SIZE=1024
CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=40
CONFIG_COAP_CLIENT_STACK_SIZE=1536
CONFIG_COAP_EXTENDED_OPTIONS_LEN_VALUE=192

# nRF Cloud
CONFIG_NRF_CLOUD_CLIENT_ID_PREFIX="oob-"
Expand Down Expand Up @@ -158,10 +160,10 @@ CONFIG_LTE_NETWORK_MODE_LTE_M_NBIOT_GPS=y

# configs for Wi-Fi
CONFIG_WIFI=y
CONFIG_WIFI_NRF700X=y
CONFIG_WIFI_NRF700X_SKIP_LOCAL_ADMIN_MAC=y
CONFIG_NRF700X_BH_WQ_STACK_SIZE=1024
CONFIG_NRF700X_IRQ_WQ_STACK_SIZE=1024
CONFIG_WIFI_NRF70=y
CONFIG_WIFI_NRF70_SKIP_LOCAL_ADMIN_MAC=y
CONFIG_NRF70_BH_WQ_STACK_SIZE=1024
CONFIG_NRF70_IRQ_WQ_STACK_SIZE=1024

# Align this with CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT
CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT=10
Expand All @@ -179,7 +181,7 @@ CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=4096
CONFIG_NRF_MODEM_LIB_SHMEM_RX_SIZE=4096

# Scan only using offload API
CONFIG_WPA_SUPP=n
CONFIG_WIFI_NM_WPA_SUPPLICANT=n

# For nRF9160 the default is socket interface
CONFIG_NET_DEFAULT_IF_ETHERNET=y
Expand Down Expand Up @@ -235,3 +237,4 @@ CONFIG_TASK_WDT_CHANNELS=9

# Device power management
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=n
2 changes: 1 addition & 1 deletion app/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tests:
- thingy91x/nrf9151/ns
extra_configs:
- CONFIG_MEMFAULT_NCS_PROJECT_KEY="PROJECTKEY"
extra_args: EXTRA_CONF_FILE=overlay-memfault.conf
extra_args: EXTRA_CONF_FILE="overlay-memfault.conf;overlay-modemtrace.conf;overlay-etb.conf"
tags: ci_build
app.build.bootloader_update:
build_only: true
Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/battery/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static void sample(int64_t *ref_time)
NPM1300_CHG_STATUS_CC_MASK |
NPM1300_CHG_STATUS_CV_MASK)) != 0;

state_of_charge = nrf_fuel_gauge_process(voltage, current, temp, delta, NULL);
state_of_charge = nrf_fuel_gauge_process(voltage, current, temp, delta, false, NULL);

LOG_DBG("State of charge: %f", (double)roundf(state_of_charge));
LOG_DBG("The battery is %s", charging ? "charging" : "not charging");
Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/memfault/Kconfig.memfault
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if APP_MEMFAULT

config APP_MEMFAULT_THREAD_STACK_SIZE
int "Thread stack size"
default 2048
default 1536

config APP_MEMFAULT_WATCHDOG_TIMEOUT_SECONDS
int "Watchdog timeout seconds"
Expand Down
2 changes: 1 addition & 1 deletion app/src/modules/transport/Kconfig.transport
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config APP_TRANSPORT_RECONNECTION_TIMEOUT_SECONDS

config APP_TRANSPORT_THREAD_STACK_SIZE
int "Thread stack size"
default 2048
default 1536

config APP_TRANSPORT_MESSAGE_QUEUE_SIZE
int "Message queue size"
Expand Down
8 changes: 8 additions & 0 deletions app/sysbuild.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

SB_CONFIG_WIFI_NRF70=y
SB_CONFIG_WIFI_NRF70_SCAN_ONLY=y
1 change: 0 additions & 1 deletion app/sysbuild/mcuboot/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_PM=n

CONFIG_MAIN_STACK_SIZE=10240
CONFIG_MBEDTLS_CFG_FILE="mcuboot-mbedtls-cfg.h"

CONFIG_BOOT_SWAP_SAVE_ENCTLV=n
CONFIG_BOOT_ENCRYPT_IMAGE=n
Expand Down
12 changes: 0 additions & 12 deletions scripts/nrf_wifi_hal_memory_leak_fix.patch

This file was deleted.

2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ manifest:
- name: nrf
remote: ncs
repo-path: sdk-nrf
revision: cfb2a11d013959f2fa68a1dc9460a1cf1c6fda82
revision: dd1b59877d3bf2aff976bc3c3a2a0dca135d9f85
import: true

0 comments on commit d59b1a4

Please sign in to comment.