Skip to content

Commit cc95b3b

Browse files
committed
app: Fix nRF9151 DK external flash configuration
Fix configuration of the external flash used for secondary MCUboot partition. Signed-off-by: Jan Tore Guggedal <jantore.guggedal@nordicsemi.no>
1 parent 75f4f15 commit cc95b3b

6 files changed

+62
-1
lines changed

app/boards/nrf9151dk_nrf9151_ns.conf

+6
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
6+
7+
# Enable external flash
8+
CONFIG_SPI=y
9+
CONFIG_SPI_NOR=y
10+
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
11+
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y

app/sysbuild/mcuboot/app.overlay

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
/ {
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
28
chosen {
39
zephyr,code-partition = &boot_partition;
410
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# MCUboot config to enable secondary slot on the external flash
8+
9+
CONFIG_FLASH=y
10+
CONFIG_SPI=y
11+
CONFIG_SPI_NOR=y
12+
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
13+
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
14+
15+
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x13E00
16+
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
17+
18+
CONFIG_MULTITHREADING=y
19+
CONFIG_MAIN_STACK_SIZE=2048
20+
CONFIG_BOOT_MAX_IMG_SECTORS=256
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
&gd25wb256 {
8+
status = "okay";
9+
};
10+
11+
/ {
12+
/* Configure partition manager to use gd25wb256 as the external flash */
13+
chosen {
14+
zephyr,code-partition = &boot_partition;
15+
nordic,pm-ext-flash = &gd25wb256;
16+
};
17+
};

app/sysbuild/mcuboot/boards/thingy91x_nrf9151.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
17
# MCUBoot settings
28
CONFIG_BOOT_MAX_IMG_SECTORS=512
39

app/sysbuild/mcuboot/prj.conf

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#
2+
# Copyright (c) 2025 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
17
CONFIG_PM=n
28

39
CONFIG_MAIN_STACK_SIZE=10240

0 commit comments

Comments
 (0)