-
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
e895510
commit 8f85589
Showing
67 changed files
with
1,086 additions
and
476 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
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
55 changes: 55 additions & 0 deletions
55
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,55 @@ | ||
/* | ||
* 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; | ||
|
||
// Use watchdog wdt31 as the application watchdog | ||
watchdog0 = &wdt31; | ||
}; | ||
|
||
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; | ||
}; | ||
}; | ||
}; | ||
|
||
&wdt31 { | ||
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
56 changes: 56 additions & 0 deletions
56
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,56 @@ | ||
/* | ||
* 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; | ||
|
||
// Use watchdog wdt31 as the application watchdog | ||
watchdog0 = &wdt31; | ||
}; | ||
|
||
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; | ||
}; | ||
}; | ||
}; | ||
|
||
&wdt31 { | ||
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
52 changes: 52 additions & 0 deletions
52
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,52 @@ | ||
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: | ||
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.