Skip to content

Commit 4663356

Browse files
committed
manifest: Update to NCS 3.1.0
Update to NCS 3.1.0. Signed-off-by: Jorgen Kvalvaag <jorgen.kvalvaag@nordicsemi.no>
1 parent 23dbc7f commit 4663356

File tree

10 files changed

+59
-47
lines changed

10 files changed

+59
-47
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
- name: Build nrf53 firmware
217217
working-directory: nrf/applications/connectivity_bridge
218218
run: |
219-
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3 -DCONFIG_BUILD_S1_VARIANT=y
219+
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3
220220
221221
- name: Create partition manager report for nRF53 firmware
222222
working-directory: nrf/applications/connectivity_bridge/build
@@ -269,10 +269,13 @@ jobs:
269269
working-directory: thingy91x-oob
270270
run: |
271271
west twister -T . --test app/app.build.bootloader_update -v -p thingy91x/nrf9151/ns --inline-logs
272-
cp twister-out/thingy91x_nrf9151_ns/app/app.build.bootloader_update/dfu_mcuboot.zip \
272+
cp twister-out/thingy91x_nrf9151_ns/zephyr/app/app.build.bootloader_update/dfu_mcuboot.zip \
273273
hello.nrfcloud.com-${{ env.VERSION }}-thingy91x-nrf91-bootloader.zip
274274
rm -rf twister-out
275-
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild -d ../nrf/applications/connectivity_bridge/build-bl-update ../nrf/applications/connectivity_bridge -- -Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=4 -DCONFIG_BUILD_S1_VARIANT=y
275+
west build -b thingy91x/nrf5340/cpuapp -p --sysbuild \
276+
-d ../nrf/applications/connectivity_bridge/build-bl-update \
277+
../nrf/applications/connectivity_bridge -- \
278+
-Dmcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=4
276279
cp ../nrf/applications/connectivity_bridge/build-bl-update/dfu_mcuboot.zip \
277280
connectivity-bridge-${{ env.VERSION }}-thingy91x-nrf53-bootloader.zip
278281

app/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
menu "Thingy Out-of-Box Application"
88

9+
config PM_PARTITION_SIZE_TFM_SRAM
10+
hex
11+
default 0x4000
12+
913
config APP_PAYLOAD_CHANNEL_BUFFER_MAX_SIZE
1014
int "Payload maximum buffer size"
1115
default 128

app/Kconfig.sysbuild

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
config MCUBOOT_USE_ALL_AVAILABLE_RAM
8+
default y
9+
10+
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig"

app/overlay-etb.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ CONFIG_MEMFAULT_NCS_ETB_CAPTURE=y
1111
# Reduce logging to avoid filling up ETB with data not related to the crash
1212
CONFIG_FAULT_DUMP=0
1313
CONFIG_KERNEL_LOG_LEVEL_OFF=y
14-
CONFIG_PM_PARTITION_SIZE_MEMFAULT_STORAGE=0x40000
14+
CONFIG_PM_PARTITION_SIZE_MEMFAULT_STORAGE=0x30000
1515
CONFIG_MEMFAULT_COREDUMP_COLLECT_BSS_REGIONS=y
1616
CONFIG_MEMFAULT_COREDUMP_FULL_THREAD_STACKS=y

app/prj.conf

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ CONFIG_DK_LIBRARY=y
1313
CONFIG_ZVFS_OPEN_MAX=10
1414
CONFIG_PWM=y
1515

16-
# Disable UART NRFX legacy shim to make the device boot.
17-
CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n
18-
1916
# Heap and stacks
2017
CONFIG_MAIN_STACK_SIZE=4096
2118
# Extended AT host/monitor stack/heap sizes since some nrf_cloud credentials are longer than 1024 bytes.
@@ -76,6 +73,7 @@ CONFIG_SHELL_STACK_SIZE=1560
7673
CONFIG_AT_SHELL=y
7774

7875
# nRF Cloud
76+
CONFIG_NRF_CLOUD=y
7977
CONFIG_NRF_CLOUD_COAP=y
8078
CONFIG_NRF_CLOUD_COAP_DISCONNECT_ON_FAILED_REQUEST=y
8179
CONFIG_MODEM_JWT=y
@@ -103,11 +101,9 @@ CONFIG_SETTINGS_FCB=y
103101
CONFIG_FCB=y
104102

105103
# Download Client - used by FOTA and PGPS
106-
CONFIG_DOWNLOAD_CLIENT=y
107-
CONFIG_DOWNLOAD_CLIENT_HTTP_FRAG_SIZE_1024=y
108-
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=3072
109-
CONFIG_DOWNLOAD_CLIENT_BUF_SIZE=2048
110-
CONFIG_DOWNLOAD_CLIENT_MAX_HOSTNAME_SIZE=128
104+
CONFIG_DOWNLOADER=y
105+
CONFIG_DOWNLOADER_TRANSPORT_HTTP=n
106+
CONFIG_DOWNLOADER_STACK_SIZE=1664
111107

112108
# Flash - Used by FOTA and PGPS
113109
CONFIG_FLASH=y
@@ -121,12 +117,12 @@ CONFIG_NRF_CLOUD_FOTA_POLL=y
121117
CONFIG_NRF_CLOUD_FOTA_POLL_LOG_LEVEL_DBG=y
122118
CONFIG_NRF_CLOUD_FOTA_FULL_MODEM_UPDATE=y
123119
CONFIG_NRF_CLOUD_FOTA_DOWNLOAD_FRAGMENT_SIZE=1700
124-
CONFIG_NRF_CLOUD_COAP_DOWNLOADS=n
120+
CONFIG_NRF_CLOUD_COAP_DOWNLOADS=y
125121
CONFIG_FOTA_DOWNLOAD=y
126122
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y
127123
CONFIG_FOTA_DL_TIMEOUT_MIN=30
128124
CONFIG_DFU_TARGET=y
129-
CONFIG_BUILD_S1_VARIANT=y
125+
130126
# COAP client
131127
CONFIG_COAP_CLIENT_THREAD_PRIORITY=0
132128
CONFIG_COAP_CLIENT_BLOCK_SIZE=1024
@@ -241,7 +237,7 @@ CONFIG_APP_LOG_LEVEL_DBG=y
241237

242238
# Fuel Gage
243239
CONFIG_NRF_FUEL_GAUGE=y
244-
CONFIG_NPM1300_CHARGER=y
240+
CONFIG_NPM13XX_CHARGER=y
245241

246242
# Task Watchdog
247243
CONFIG_TASK_WDT=y
@@ -250,6 +246,7 @@ CONFIG_TASK_WDT_MIN_TIMEOUT=10000
250246

251247
# Device power management
252248
CONFIG_PM_DEVICE=y
249+
CONFIG_PM_DEVICE_RUNTIME=n
253250

254251
# Modem tracing
255252
CONFIG_FCB=y

app/sample.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ tests:
3030
tags: ci_build
3131
extra_args:
3232
- mcuboot_CONFIG_FW_INFO_FIRMWARE_VERSION=3
33-
- CONFIG_BUILD_S1_VARIANT=y

app/src/modules/battery/battery.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <zephyr/kernel.h>
88
#include <zephyr/logging/log.h>
99
#include <zephyr/zbus/zbus.h>
10-
#include <zephyr/drivers/sensor/npm1300_charger.h>
10+
#include <zephyr/drivers/sensor/npm13xx_charger.h>
1111
#include <zephyr/sys/util.h>
1212
#include <nrf_fuel_gauge.h>
1313
#include <date_time.h>
@@ -193,7 +193,7 @@ static int charger_read_sensors(float *voltage, float *current, float *temp, int
193193
sensor_channel_get(charger, SENSOR_CHAN_GAUGE_AVG_CURRENT, &value);
194194
*current = (float)value.val1 + ((float)value.val2 / 1000000);
195195

196-
sensor_channel_get(charger, (enum sensor_channel)SENSOR_CHAN_NPM1300_CHARGER_STATUS,
196+
sensor_channel_get(charger, (enum sensor_channel)SENSOR_CHAN_NPM13XX_CHARGER_STATUS,
197197
&value);
198198
*chg_status = value.val1;
199199

@@ -233,7 +233,7 @@ static void sample(int64_t *ref_time)
233233
NPM1300_CHG_STATUS_CC_MASK |
234234
NPM1300_CHG_STATUS_CV_MASK)) != 0;
235235

236-
state_of_charge = nrf_fuel_gauge_process(voltage, current, temp, delta, false, NULL);
236+
state_of_charge = nrf_fuel_gauge_process(voltage, current, temp, delta, NULL);
237237

238238
LOG_DBG("State of charge: %f", (double)roundf(state_of_charge));
239239
LOG_DBG("The battery is %s", charging ? "charging" : "not charging");

app/src/modules/trigger/trigger.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ struct s_object {
113113
/* SMF state object variable */
114114
static struct s_object state_object;
115115

116-
static void trigger_send(enum trigger_type type, k_timeout_t timeout)
116+
static void trigger_send(enum trigger_type type)
117117
{
118118
enum trigger_type trigger_type = type;
119119

120-
int err = zbus_chan_pub(&TRIGGER_CHAN, &trigger_type, timeout);
120+
int err = zbus_chan_pub(&TRIGGER_CHAN, &trigger_type, K_NO_WAIT);
121121

122122
if (err) {
123123
LOG_ERR("zbus_chan_pub, error: %d", err);
@@ -136,7 +136,7 @@ static void frequent_poll_state_duration_timer_handler(struct k_timer * timer_id
136136

137137
LOG_DBG("Frequent poll duration timer expired");
138138

139-
err = zbus_chan_pub(&PRIV_TRIGGER_CHAN, &unused, K_SECONDS(1));
139+
err = zbus_chan_pub(&PRIV_TRIGGER_CHAN, &unused, K_NO_WAIT);
140140
if (err) {
141141
LOG_ERR("zbus_chan_pub, error: %d", err);
142142
SEND_FATAL_ERROR();
@@ -151,7 +151,7 @@ static void trigger_work_fn(struct k_work *work)
151151

152152
LOG_DBG("Sending data sample trigger");
153153

154-
trigger_send(TRIGGER_DATA_SAMPLE, K_SECONDS(1));
154+
trigger_send(TRIGGER_DATA_SAMPLE);
155155

156156
k_work_reschedule(&trigger_work, K_SECONDS(state_object.update_interval_used_sec));
157157
}
@@ -162,8 +162,8 @@ static void trigger_poll_work_fn(struct k_work *work)
162162

163163
LOG_DBG("Sending shadow/fota poll trigger");
164164

165-
trigger_send(TRIGGER_POLL, K_SECONDS(1));
166-
trigger_send(TRIGGER_FOTA_POLL, K_SECONDS(1));
165+
trigger_send(TRIGGER_POLL);
166+
trigger_send(TRIGGER_FOTA_POLL);
167167

168168
k_work_reschedule(&trigger_poll_work,
169169
K_SECONDS(state_object.poll_interval_used_sec));
@@ -283,8 +283,8 @@ static void blocked_run(void *o)
283283
user_object->button_number);
284284

285285
frequent_poll_duration_timer_start(true);
286-
trigger_send(TRIGGER_POLL, K_SECONDS(1));
287-
trigger_send(TRIGGER_FOTA_POLL, K_SECONDS(1));
286+
trigger_send(TRIGGER_POLL);
287+
trigger_send(TRIGGER_FOTA_POLL);
288288

289289
} else if (user_object->chan == &CONFIG_CHAN) {
290290
LOG_DBG("Configuration received, refreshing poll duration timer");
@@ -316,7 +316,7 @@ static void frequent_poll_entry(void *o)
316316
K_SECONDS(user_object->poll_interval_used_sec));
317317
return;
318318
}
319-
int err = zbus_chan_pub(&TRIGGER_MODE_CHAN, &user_object->trigger_mode, K_SECONDS(1));
319+
int err = zbus_chan_pub(&TRIGGER_MODE_CHAN, &user_object->trigger_mode, K_NO_WAIT);
320320

321321
if (err) {
322322
LOG_ERR("zbus_chan_pub, error: %d", err);
@@ -393,7 +393,7 @@ static void normal_entry(void *o)
393393
user_object->trigger_mode = TRIGGER_MODE_NORMAL;
394394

395395
/* Send message on trigger mode channel */
396-
int err = zbus_chan_pub(&TRIGGER_MODE_CHAN, &user_object->trigger_mode, K_SECONDS(1));
396+
int err = zbus_chan_pub(&TRIGGER_MODE_CHAN, &user_object->trigger_mode, K_NO_WAIT);
397397
if (err) {
398398
LOG_ERR("zbus_chan_pub, error: %d", err);
399399
SEND_FATAL_ERROR();

scripts/pmr_nrf91.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
external_flash (0x2000000 - 32768kB):
1+
external_flash (0x2000000 - 32768kB):
22
+------------------------------------------------+
33
| 0x0: mcuboot_secondary (0xd0000 - 832kB) |
44
| 0xd0000: fmfu_storage (0x400000 - 4096kB) |
@@ -7,7 +7,7 @@
77
| 0x5d1000: external_flash (0x1a2f000 - 26812kB) |
88
+------------------------------------------------+
99

10-
flash_primary (0x100000 - 1024kB):
10+
flash_primary (0x100000 - 1024kB):
1111
+--------------------------------------------------+
1212
+---0x0: b0_container (0x8000 - 32kB)--------------+
1313
| 0x0: b0 (0x8000 - 32kB) |
@@ -25,28 +25,27 @@
2525
+---0x30200: mcuboot_primary_app (0xcfe00 - 831kB)-+
2626
| 0x30200: tfm (0x7e00 - 31kB) |
2727
+---0x38000: tfm_nonsecure (0xc8000 - 800kB)-------+
28-
| 0x38000: app (0xb8000 - 736kB) |
29-
+---0xf0000: nonsecure_storage (0x10000 - 64kB)----+
30-
| 0xf0000: memfault_storage (0x10000 - 64kB) |
28+
| 0x38000: app (0xc8000 - 800kB) |
3129
+--------------------------------------------------+
3230

33-
otp (0x2f4 - 756B):
31+
otp (0x2f4 - 756B):
3432
+------------------------------------+
3533
| 0xff8108: provision (0x280 - 640B) |
3634
| 0xff8388: otp (0x74 - 116B) |
3735
+------------------------------------+
3836

39-
sram_primary (0x40000 - 256kB):
37+
sram_primary (0x40000 - 256kB):
4038
+--------------------------------------------------+
41-
+---0x20000000: mcuboot_sram (0xa000 - 40kB)-------+
42-
+---0x20000000: sram_secure (0xa000 - 40kB)--------+
43-
| 0x20000000: tfm_sram (0xa000 - 40kB) |
44-
+---0x2000a000: sram_nonsecure (0x36000 - 216kB)---+
45-
+---0x2000a000: nrf_modem_lib_sram (0x64e8 - 25kB)-+
46-
| 0x2000a000: nrf_modem_lib_ctrl (0x4e8 - 1kB) |
47-
| 0x2000a4e8: nrf_modem_lib_tx (0x1000 - 4kB) |
48-
| 0x2000b4e8: nrf_modem_lib_rx (0x1000 - 4kB) |
49-
| 0x2000c4e8: nrf_modem_lib_trace (0x4000 - 16kB) |
39+
+---0x20000000: mcuboot_sram (0x40000 - 256kB)-----+
40+
+---0x20000000: sram_secure (0x4000 - 16kB)--------+
41+
| 0x20000000: tfm_sram (0x4000 - 16kB) |
42+
+---0x20004000: sram_nonsecure (0x3c000 - 240kB)---+
43+
+---0x20004000: nrf_modem_lib_sram (0x64e8 - 25kB)-+
44+
| 0x20004000: nrf_modem_lib_ctrl (0x4e8 - 1kB) |
45+
| 0x200044e8: nrf_modem_lib_tx (0x1000 - 4kB) |
46+
| 0x200054e8: nrf_modem_lib_rx (0x1000 - 4kB) |
47+
| 0x200064e8: nrf_modem_lib_trace (0x4000 - 16kB) |
5048
+--------------------------------------------------+
51-
| 0x200104e8: sram_primary (0x2fb18 - 190kB) |
49+
| 0x2000a4e8: sram_primary (0x35b18 - 214kB) |
5250
+--------------------------------------------------+
51+

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ manifest:
1414
- name: nrf
1515
remote: ncs
1616
repo-path: sdk-nrf
17-
revision: v2.8.0-rc2
17+
revision: v3.1.0
1818
import: true

0 commit comments

Comments
 (0)