File tree 6 files changed +62
-1
lines changed
6 files changed +62
-1
lines changed Original file line number Diff line number Diff line change 3
3
#
4
4
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
5
#
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
Original file line number Diff line number Diff line change 1
- / {
1
+ /*
2
+ * Copyright (c) 2025 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ / {
2
8
chosen {
3
9
zephyr,code-partition = &boot_partition;
4
10
};
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
+ };
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2025 Nordic Semiconductor ASA
3
+ #
4
+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ #
6
+
1
7
# MCUBoot settings
2
8
CONFIG_BOOT_MAX_IMG_SECTORS=512
3
9
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2025 Nordic Semiconductor ASA
3
+ #
4
+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ #
6
+
1
7
CONFIG_PM=n
2
8
3
9
CONFIG_MAIN_STACK_SIZE=10240
You can’t perform that action at this time.
0 commit comments