Skip to content

Commit bec4fae

Browse files
jaz1-nordicfabiobaltieri
authored andcommitted
snippets: Add nRF54L15 FLPR core snippets
Add snippets to boot nRF54L15 FLPR from application core. Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
1 parent 65f7436 commit bec4fae

File tree

8 files changed

+128
-0
lines changed

8 files changed

+128
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _nordic-flpr-xip:
2+
3+
Nordic FLPR snippet with execution in place (nordic-flpr-xip)
4+
#############################################################
5+
6+
Overview
7+
********
8+
9+
This snippet allows users to build Zephyr with the capability to boot Nordic FLPR
10+
(Fast Lightweight Peripheral Processor) from application core.
11+
FLPR code is to be executed from RRAM, so the FLPR image must be built
12+
for the ``xip`` board variant, or with :kconfig:option:`CONFIG_XIP` enabled.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
soc {
8+
reserved-memory {
9+
#address-cells = <1>;
10+
#size-cells = <1>;
11+
cpuflpr_code_partition: image@165000 {
12+
/* FLPR core code partition */
13+
reg = <0x165000 DT_SIZE_K(96)>;
14+
};
15+
};
16+
};
17+
};
18+
19+
&uart30 {
20+
status = "reserved";
21+
};
22+
23+
&cpuflpr_vpr {
24+
execution-memory = <&cpuflpr_code_partition>;
25+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&cpuflpr_vpr {
7+
status = "okay";
8+
};
9+
10+
&cpuflpr_vevif_remote {
11+
status = "okay";
12+
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: nordic-flpr-xip
2+
append:
3+
EXTRA_DTC_OVERLAY_FILE: nordic-flpr-xip.overlay
4+
5+
boards:
6+
nrf54l15pdk/nrf54l15/cpuapp:
7+
append:
8+
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

snippets/nordic-flpr/README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _nordic-flpr:
2+
3+
Nordic FLPR snippet with execution from SRAM (nordic-flpr)
4+
##########################################################
5+
6+
Overview
7+
********
8+
9+
This snippet allows users to build Zephyr with the capability to boot Nordic FLPR
10+
(Fast Lightweight Peripheral Processor) from application core.
11+
FLPR code is to be executed from SRAM, so the FLPR image must be built
12+
without the ``xip`` board variant, or with :kconfig:option:`CONFIG_XIP` disabled.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
soc {
8+
reserved-memory {
9+
#address-cells = <1>;
10+
#size-cells = <1>;
11+
cpuflpr_code_partition: image@165000 {
12+
/* FLPR core code partition */
13+
reg = <0x165000 DT_SIZE_K(96)>;
14+
};
15+
};
16+
17+
cpuflpr_sram_code_data: memory@20028000 {
18+
compatible = "mmio-sram";
19+
reg = <0x20028000 DT_SIZE_K(96)>;
20+
#address-cells = <1>;
21+
#size-cells = <1>;
22+
ranges = <0x0 0x20028000 0x18000>;
23+
};
24+
};
25+
};
26+
27+
&uart30 {
28+
status = "reserved";
29+
};
30+
31+
&cpuapp_sram {
32+
reg = <0x20000000 DT_SIZE_K(160)>;
33+
ranges = <0x0 0x20000000 0x28000>;
34+
};
35+
36+
&cpuflpr_vpr {
37+
execution-memory = <&cpuflpr_sram_code_data>;
38+
source-memory = <&cpuflpr_code_partition>;
39+
};
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&cpuflpr_vpr {
7+
status = "okay";
8+
};
9+
10+
&cpuflpr_vevif_remote {
11+
status = "okay";
12+
};

snippets/nordic-flpr/snippet.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: nordic-flpr
2+
append:
3+
EXTRA_DTC_OVERLAY_FILE: nordic-flpr.overlay
4+
5+
boards:
6+
nrf54l15pdk/nrf54l15/cpuapp:
7+
append:
8+
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15pdk_nrf54l15_cpuapp.overlay

0 commit comments

Comments
 (0)