Skip to content

Commit 7ea874c

Browse files
samples: matter: Switch Matter Tempate sample to non-PM build
Refactored Matter Temple sample to non-Partition Manager build. Aligned all images and board files. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent 0aa8f8a commit 7ea874c

54 files changed

Lines changed: 209 additions & 1123 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/matter/template/Kconfig.sysbuild

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ config DFU_MULTI_IMAGE_PACKAGE_BUILD
3636
config DFU_MULTI_IMAGE_PACKAGE_APP
3737
default y
3838

39-
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
40-
default y
41-
4239
#### DFU network core configuration
4340
if SOC_SERIES_NRF53
4441

@@ -61,22 +58,6 @@ config DFU_MULTI_IMAGE_PACKAGE_NET
6158

6259
endif # SOC_SERIES_NRF53
6360

64-
if BOARD_NRF54L15DK || BOARD_NRF54LM20DK
65-
66-
# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
67-
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
68-
default y
69-
70-
endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK
71-
72-
# Mcuboot padding size is modified to 0x1000 in pm_static file.
73-
if SOC_NRF54L10
74-
75-
config PM_MCUBOOT_PAD
76-
default 0x1000
77-
78-
endif # SOC_NRF54L10
79-
8061
endif # BOOTLOADER_MCUBOOT
8162

8263
# Store the Wi-Fi firmware patch on external flash by default for nRF5340 with nRF7002
@@ -99,19 +80,50 @@ config MATTER_FACTORY_DATA_GENERATE
9980
# Internal flash only for nRF54L15 tag with compression
10081
if BOARD_NRF54L15TAG
10182

83+
choice MCUBOOT_MODE
84+
default MCUBOOT_MODE_OVERWRITE_ONLY
85+
endchoice
86+
87+
config MCUBOOT_COMPRESSED_IMAGE_SUPPORT
88+
default y
89+
90+
endif
91+
92+
# Partition Manager backwards compatibility
93+
if PARTITION_MANAGER
94+
95+
if SOC_NRF54L10
96+
97+
config PM_MCUBOOT_PAD
98+
default 0x1000
99+
100+
endif # SOC_NRF54L10
101+
102+
if BOARD_NRF54L15TAG
103+
102104
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
103105
default y
104106

105107
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
106108
default y
107109

108-
choice MCUBOOT_MODE
109-
default MCUBOOT_MODE_OVERWRITE_ONLY
110-
endchoice
110+
endif # BOARD_NRF54L15TAG
111111

112-
config MCUBOOT_COMPRESSED_IMAGE_SUPPORT
112+
if BOARD_NRF54L15DK || BOARD_NRF54LM20DK
113+
114+
# Disable checking the external drivers for nRF54L15 and nRF54LM20 DKs.
115+
config PM_OVERRIDE_EXTERNAL_DRIVER_CHECK
113116
default y
114117

115-
endif
118+
endif # BOARD_NRF54L15DK || BOARD_NRF54LM20DK
119+
120+
if BOOTLOADER_MCUBOOT
121+
122+
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY
123+
default y
124+
125+
endif # BOOTLOADER_MCUBOOT
126+
127+
endif # PARTITION_MANAGER
116128

117129
source "share/sysbuild/Kconfig"

samples/matter/template/boards/nrf52840dk_nrf52840.overlay

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
8-
chosen {
9-
nordic,pm-ext-flash = &mx25r64;
10-
};
11-
};
7+
#include <samples/matter/nrf52840_partitions.dtsi>
128

139
/* Disable unused peripherals to reduce power consumption */
1410
&adc {

samples/matter/template/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf5340_cpuapp_partitions.dtsi>
78
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
89

9-
/ {
10-
chosen {
11-
nordic,pm-ext-flash = &mx25r64;
12-
};
13-
};
14-
1510
/* Set IPC thread priority to the highest value to not collide with other threads. */
1611
&ipc0 {
1712
zephyr,priority = <0 PRIO_COOP>;

samples/matter/template/boards/nrf54l15dk_nrf54l10_cpuapp.overlay

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,13 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54l10_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
12-
13-
chosen {
14-
nordic,pm-ext-flash = &mx25r64;
15-
};
16-
};
17-
18-
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
19-
&cpuapp_rram {
20-
reg = <0x0 DT_SIZE_K(1012)>;
21-
};
22-
23-
&cpuapp_sram {
24-
reg = <0x20000000 DT_SIZE_K(192)>;
25-
ranges = <0x0 0x20000000 DT_SIZE_K(192)>;
26-
};
27-
28-
&mx25r64 {
29-
status = "okay";
3014
};
3115

3216
&wdt31 {

samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp.overlay

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,13 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54l15_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
12-
13-
chosen {
14-
nordic,pm-ext-flash = &mx25r64;
15-
};
16-
};
17-
18-
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
19-
&cpuapp_rram {
20-
reg = <0x0 DT_SIZE_K(1524)>;
21-
};
22-
23-
&cpuapp_sram {
24-
reg = <0x20000000 DT_SIZE_K(256)>;
25-
ranges = <0x0 0x20000000 0x40000>;
26-
};
27-
28-
&mx25r64 {
29-
status = "okay";
3014
};
3115

3216
&wdt31 {

samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.overlay

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54l15_internal_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
1214
};
1315

14-
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
15-
&cpuapp_rram {
16-
reg = <0x0 DT_SIZE_K(1524)>;
17-
};
18-
19-
&cpuapp_sram {
20-
reg = <0x20000000 DT_SIZE_K(256)>;
21-
ranges = <0x0 0x20000000 0x40000>;
22-
};
23-
24-
&mx25r64 {
25-
status = "disabled";
26-
};
27-
2816
&wdt31 {
2917
status = "okay";
3018
};

samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_ns.overlay

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,13 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54l15_ns_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
12-
13-
chosen {
14-
nordic,pm-ext-flash = &mx25r64;
15-
};
16-
};
17-
18-
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
19-
&cpuapp_rram {
20-
reg = <0x0 DT_SIZE_K(1524)>;
21-
};
22-
23-
&cpuapp_sram {
24-
reg = <0x20000000 DT_SIZE_K(256)>;
25-
ranges = <0x0 0x20000000 0x40000>;
26-
};
27-
28-
&mx25r64 {
29-
status = "okay";
3014
};
3115

3216
&wdt31 {

samples/matter/template/boards/nrf54l15tag_nrf54l15_cpuapp.overlay

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54l15tag_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
1214
};
1315

14-
/* restore full RRAM and SRAM space - by default some parts are dedicated to FLRP */
15-
&cpuapp_rram {
16-
reg = <0x0 DT_SIZE_K(1524)>;
17-
};
18-
19-
&cpuapp_sram {
20-
reg = <0x20000000 DT_SIZE_K(256)>;
21-
ranges = <0x0 0x20000000 0x40000>;
22-
};
23-
2416
&wdt31 {
2517
status = "okay";
2618
};

samples/matter/template/boards/nrf54lm20dk_nrf54lm20a_cpuapp.overlay

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
/ {
8-
chosen {
9-
nordic,pm-ext-flash = &mx25r64;
10-
};
7+
#include <samples/matter/nrf54lm20_partitions.dtsi>
118

9+
/ {
1210
aliases {
1311
/* Use watchdog wdt31 as the application watchdog */
1412
watchdog0 = &wdt31;
1513
};
1614
};
1715

18-
&rram_controller {
19-
cpuapp_rram: rram@0 {
20-
reg = <0x0 DT_SIZE_K(2036)>;
21-
ranges = <0x0 0x0 DT_SIZE_K(2036)>;
22-
};
23-
};
24-
25-
&mx25r64 {
26-
status = "okay";
27-
};
28-
2916
&wdt31 {
3017
status = "okay";
3118
};

samples/matter/template/boards/nrf54lm20dk_nrf54lm20a_cpuapp_internal.overlay

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
#include <samples/matter/nrf54lm20_internal_partitions.dtsi>
8+
79
/ {
810
aliases {
911
/* Use watchdog wdt31 as the application watchdog */
1012
watchdog0 = &wdt31;
1113
};
1214
};
1315

14-
&rram_controller {
15-
cpuapp_rram: rram@0 {
16-
reg = <0x0 DT_SIZE_K(2036)>;
17-
ranges = <0x0 0x0 DT_SIZE_K(2036)>;
18-
};
19-
};
20-
21-
&mx25r64 {
22-
status = "disabled";
23-
};
24-
2516
&wdt31 {
2617
status = "okay";
2718
};

0 commit comments

Comments
 (0)