-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: matter: rework PM static partitions for nRF54L
* enabled mx25r64 external flash over SPI for Matter samples * added pm_static* files that configures static memory map with MCUboot secondary slot residing on the external flash * added initial MCUboot configuration to support DFU * provided default/debug and release variants for every sample * left the pm_static file with internal flash only for the template sample as a reference for dual bank DFU with no external flash * updated documentation to describe supported DFU variants Signed-off-by: Marcin Kajor <[email protected]>
- Loading branch information
1 parent
02cd095
commit 42224d9
Showing
65 changed files
with
1,068 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
samples/matter/light_bulb/boards/nrf54l15pdk_nrf54l15_cpuapp_0_2_1_release.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
nordic,pm-ext-flash = &mx25r64; | ||
}; | ||
|
||
aliases { | ||
// Configure PWM module for led1 (LED2 on the board) | ||
pwm-led1 = &pwm_led1; | ||
}; | ||
|
||
pwmleds { | ||
compatible = "pwm-leds"; | ||
pwm_led1: pwm_led_1 { | ||
pwms = <&pwm20 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
}; | ||
|
||
&mx25r64 { | ||
status = "okay"; | ||
}; | ||
|
||
&pwm20 { | ||
status = "okay"; | ||
pinctrl-0 = <&pwm_default>; | ||
pinctrl-1 = <&pwm_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&pinctrl { | ||
pwm_default: pwm_default { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT1, 1, 8)>; | ||
}; | ||
}; | ||
pwm_sleep: pwm_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT1, 1, 8)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
samples/matter/light_bulb/boards/nrf54l15pdk_nrf54l15_cpuapp_0_3_0_release.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
|
||
/ { | ||
chosen { | ||
nordic,pm-ext-flash = &mx25r64; | ||
}; | ||
|
||
aliases { | ||
// Configure PWM module for led1 (LED2 on the board) | ||
pwm-led1 = &pwm_led1; | ||
}; | ||
|
||
pwmleds { | ||
compatible = "pwm-leds"; | ||
pwm_led1: pwm_led_1 { | ||
pwms = <&pwm20 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
}; | ||
|
||
&mx25r64 { | ||
status = "okay"; | ||
}; | ||
|
||
&pwm20 { | ||
status = "okay"; | ||
pinctrl-0 = <&pwm_default>; | ||
pinctrl-1 = <&pwm_sleep>; | ||
pinctrl-names = "default", "sleep"; | ||
}; | ||
|
||
&pinctrl { | ||
pwm_default: pwm_default { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT1, 1, 10)>; | ||
}; | ||
}; | ||
pwm_sleep: pwm_sleep { | ||
group1 { | ||
psels = <NRF_PSEL(PWM_OUT1, 1, 10)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
samples/matter/light_bulb/child_image/mcuboot/boards/nrf54l15pdk_nrf54l15_cpuapp.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# TODO: Workaround Fprotect is not supported on nRF54l15 yet. | ||
CONFIG_FPROTECT=n | ||
# TODO: Workaround, disable memory guard to avoid false faults in application after boot | ||
CONFIG_HW_STACK_PROTECTION=n | ||
|
||
CONFIG_BOOT_WATCHDOG_FEED=n | ||
|
||
CONFIG_GPIO=y | ||
|
||
# Adjust the maximum sectors to the app image size of ~1.4MB | ||
CONFIG_BOOT_MAX_IMG_SECTORS=512 |
15 changes: 15 additions & 0 deletions
15
samples/matter/light_bulb/child_image/mcuboot/boards/nrf54l15pdk_nrf54l15_cpuapp.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
nordic,pm-ext-flash = &mx25r64; | ||
}; | ||
}; | ||
|
||
&mx25r64 { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../matter/light_bulb/child_image/mcuboot/boards/nrf54l15pdk_nrf54l15_cpuapp_release.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
nordic,pm-ext-flash = &mx25r64; | ||
}; | ||
}; | ||
|
||
&mx25r64 { | ||
status = "okay"; | ||
}; |
56 changes: 56 additions & 0 deletions
56
samples/matter/light_bulb/pm_static_nrf54l15pdk_nrf54l15_cpuapp.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
mcuboot: | ||
address: 0x0 | ||
region: flash_primary | ||
size: 0xc000 | ||
mcuboot_pad: | ||
address: 0xc000 | ||
region: flash_primary | ||
size: 0x800 | ||
app: | ||
address: 0xc800 | ||
region: flash_primary | ||
size: 0x167800 | ||
mcuboot_primary: | ||
orig_span: &id001 | ||
- mcuboot_pad | ||
- app | ||
span: *id001 | ||
address: 0xc000 | ||
region: flash_primary | ||
size: 0x168000 | ||
mcuboot_primary_app: | ||
orig_span: &id002 | ||
- app | ||
span: *id002 | ||
address: 0xc800 | ||
region: flash_primary | ||
size: 0x167800 | ||
factory_data: | ||
address: 0x174000 | ||
region: flash_primary | ||
size: 0x1000 | ||
settings_storage: | ||
address: 0x175000 | ||
region: flash_primary | ||
size: 0x8000 | ||
mcuboot_secondary: | ||
address: 0x0 | ||
orig_span: &id003 | ||
- mcuboot_secondary_pad | ||
- mcuboot_secondary_app | ||
region: external_flash | ||
size: 0x168000 | ||
span: *id003 | ||
mcuboot_secondary_pad: | ||
region: external_flash | ||
address: 0x0 | ||
size: 0x800 | ||
mcuboot_secondary_app: | ||
region: external_flash | ||
address: 0x800 | ||
size: 0x167800 | ||
external_flash: | ||
address: 0x168000 | ||
size: 0x698000 | ||
device: MX25R64 | ||
region: external_flash |
Oops, something went wrong.