Skip to content

Commit

Permalink
snippets: Add snippet to emulate the nRF54L10
Browse files Browse the repository at this point in the history
Add a snippet to simulate the RAM and RRAM sizes of the nRF54L10 when
building for the nRF54L15.

Note that enabling FLPR is not supported when using this snippet.

Signed-off-by: Carles Cufi <[email protected]>
  • Loading branch information
carlescufi committed Oct 21, 2024
1 parent 9e5b54d commit bb93491
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
24 changes: 24 additions & 0 deletions snippets/emulated-nrf54l10/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.. _emulated-nrf54l10:

nRF54L10 snippet
################

.. contents::
:local:
:depth: 2

Overview
********

Simulate the nRF54L10 on an nRF54L15.

Supported SoCs and boards
*************************

.. warning:
This snippet is not compatible with the use of the FLPR core, since all
memory (both RAM and RRAM) is assigned to the application core.
Currently, the only SoC and board supported for use with the snippet is:

* :ref:`zephyr:nrf54l15dk_nrf54l15`
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

&cpuapp_sram {
reg = <0x20000000 DT_SIZE_K(192)>;
ranges = <0x0 0x20000000 DT_SIZE_K(192)>;
};

&cpuapp_rram {
reg = <0x0 DT_SIZE_K(1022)>;
};

/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot0_ns_partition;
/delete-node/ &slot1_partition;
/delete-node/ &slot1_ns_partition;
/delete-node/ &storage_partition;

&cpuapp_rram {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x0 DT_SIZE_K(64)>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x10000 DT_SIZE_K(230)>;
};
slot0_ns_partition: partition@49800 {
label = "image-0-nonsecure";
reg = <0x49800 DT_SIZE_K(230)>;
};
slot1_partition: partition@83000 {
label = "image-1";
reg = <0x83000 DT_SIZE_K(230)>;
};
slot1_ns_partition: partition@bc800 {
label = "image-1-nonsecure";
reg = <0xbc800 DT_SIZE_K(230)>;
};
storage_partition: partition@f6000 {
label = "storage";
reg = <0xf6000 DT_SIZE_K(38)>;
};
};
};
12 changes: 12 additions & 0 deletions snippets/emulated-nrf54l10/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# Copyright (c) 2024 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

name: emulated-nrf54l10

boards:
nrf54l15dk/nrf54l15/cpuapp:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54l15dk_nrf54l15_cpuapp.overlay

0 comments on commit bb93491

Please sign in to comment.