Skip to content

Commit 5466283

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 3bc612d commit 5466283

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
@@ -30,4 +30,7 @@ CONFIG_SM_AT_CLIENT=y
3030
CONFIG_SM_AT_CLIENT_SHELL=y
3131
CONFIG_SM_AT_CLIENT_LOG_LEVEL_INF=y
3232

33+
# Ensure the use of the DTS partitions
34+
CONFIG_USE_DT_CODE_PARTITION=y
35+
3336
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
@@ -49,3 +49,33 @@
4949
&gpio1 {
5050
status = "okay";
5151
};
52+
53+
/* Using default SRAM partitions from nrf54l15_cpuapp_partition.dtsi */
54+
55+
/*
56+
* RRAM partition layout for nRF54L15 DK (disable MCUboot)
57+
*
58+
* 0x0000_0000 slot0 (primary app) (1492 kB)
59+
* 0x0017_5000 Non-secure storage ( 32 kB)
60+
*/
61+
62+
/delete-node/ &boot_partition;
63+
/delete-node/ &slot0_partition;
64+
/delete-node/ &slot1_partition;
65+
/delete-node/ &storage_partition;
66+
67+
&cpuapp_rram {
68+
partitions {
69+
slot0_partition: partition@0 {
70+
compatible = "zephyr,mapped-partition";
71+
label = "image-0";
72+
reg = <0x0 DT_SIZE_K(1492)>;
73+
};
74+
75+
storage_partition: partition@175000 {
76+
compatible = "zephyr,mapped-partition";
77+
label = "storage";
78+
reg = <0x000175000 DT_SIZE_K(32)>;
79+
};
80+
};
81+
};

samples/sm_ppp_shell/boards/nrf54l15dk_nrf54l15_cpuapp_ns.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@
4949
&gpio1 {
5050
status = "okay";
5151
};
52+
53+
/* Using default RRAM and SRAM partitions from nrf54l15_cpuapp_ns_partition.dtsi.
54+
* The nrf54l15_cpuapp_ns_partition.dtsi does not define partition for MCUboot by default.
55+
*/

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)