Skip to content

Commit 309ce3e

Browse files
committed
samples: Disable Partition Manager
Disable PM and add DTS changes to samples. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
1 parent e551797 commit 309ce3e

7 files changed

Lines changed: 91 additions & 0 deletions

File tree

samples/sm_at_client_shell/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,32 @@
3333
ri-gpios = <&gpio1 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3434
};
3535
};
36+
37+
38+
/*
39+
* Flash partition layout for nRF54L15 DK
40+
*
41+
* 0x0000_0000 slot0 (primary app) (1492 kB)
42+
* 0x0017_5000 Non-secure storage ( 32 kB)
43+
*/
44+
45+
/delete-node/ &boot_partition;
46+
/delete-node/ &slot0_partition;
47+
/delete-node/ &slot1_partition;
48+
/delete-node/ &storage_partition;
49+
50+
&cpuapp_rram {
51+
partitions {
52+
slot0_partition: partition@0 {
53+
compatible = "zephyr,mapped-partition";
54+
label = "image-0";
55+
reg = <0x0 DT_SIZE_K(1492)>;
56+
};
57+
58+
storage_partition: partition@175000 {
59+
compatible = "zephyr,mapped-partition";
60+
label = "storage";
61+
reg = <0x000175000 DT_SIZE_K(32)>;
62+
};
63+
};
64+
};

samples/sm_at_client_shell/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ CONFIG_SM_AT_CLIENT=y
3131
CONFIG_SM_AT_CLIENT_SHELL=y
3232
CONFIG_SM_AT_CLIENT_LOG_LEVEL_INF=y
3333

34+
# Ensure the use of the DTS partitions
35+
CONFIG_USE_DT_CODE_PARTITION=y
36+
3437
CONFIG_ASSERT=y
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Disable the partition manager. Use DTS to define the partitions.
8+
SB_CONFIG_PARTITION_MANAGER=n
9+
10+
# Disable MCUboot.
11+
SB_CONFIG_BOOTLOADER_MCUBOOT=n

samples/sm_ppp_shell/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,33 @@
5353
&gpio1 {
5454
status = "okay";
5555
};
56+
57+
/* Using default SRAM partitions from nrf54l15_cpuapp_partition.dtsi */
58+
59+
/*
60+
* RRAM partition layout for nRF54L15 DK (disable MCUboot)
61+
*
62+
* 0x0000_0000 slot0 (primary app) (1492 kB)
63+
* 0x0017_5000 Non-secure storage ( 32 kB)
64+
*/
65+
66+
/delete-node/ &boot_partition;
67+
/delete-node/ &slot0_partition;
68+
/delete-node/ &slot1_partition;
69+
/delete-node/ &storage_partition;
70+
71+
&cpuapp_rram {
72+
partitions {
73+
slot0_partition: partition@0 {
74+
compatible = "zephyr,mapped-partition";
75+
label = "image-0";
76+
reg = <0x0 DT_SIZE_K(1492)>;
77+
};
78+
79+
storage_partition: partition@175000 {
80+
compatible = "zephyr,mapped-partition";
81+
label = "storage";
82+
reg = <0x000175000 DT_SIZE_K(32)>;
83+
};
84+
};
85+
};

samples/sm_ppp_shell/boards/nrf54l15dk_nrf54l15_cpuapp_ns.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@
5353
&gpio1 {
5454
status = "okay";
5555
};
56+
57+
/* Using default RRAM and SRAM partitions from nrf54l15_cpuapp_ns_partition.dtsi.
58+
* The nrf54l15_cpuapp_ns_partition.dtsi does not define partition for MCUboot by default.
59+
*/

samples/sm_ppp_shell/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ CONFIG_PM_DEVICE_SHELL=y
5353
CONFIG_NET_MGMT_EVENT_MONITOR=y
5454
CONFIG_NET_MGMT_EVENT_MONITOR_AUTO_START=y
5555

56+
# Ensure the use of the DTS partitions
57+
CONFIG_USE_DT_CODE_PARTITION=y
58+
5659
# Logging
5760
CONFIG_LOG=y
5861
CONFIG_MODEM_LOG_LEVEL_DBG=y

samples/sm_ppp_shell/sysbuild.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
# Disable the partition manager. Use DTS to define the partitions.
8+
SB_CONFIG_PARTITION_MANAGER=n
9+
10+
# Disable MCUboot.
11+
SB_CONFIG_BOOTLOADER_MCUBOOT=n

0 commit comments

Comments
 (0)