Skip to content

Commit

Permalink
snippets: Add nordic-ppr-xip
Browse files Browse the repository at this point in the history
This replacement for the `nordic-ppr-ram` snippet does the opposite:
enable PPR execution in place from MRAM.

Signed-off-by: Grzegorz Swiderski <[email protected]>
  • Loading branch information
57300 authored and fabiobaltieri committed Mar 18, 2024
1 parent 13bebdb commit 74f9f86
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snippets/nordic-ppr-xip/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _nordic-ppr-xip:

Nordic boot PPR snippet with execution in place (nordic-ppr-xip)
################################################################

Overview
********

This snippet allows users to build Zephyr with the capability to boot Nordic PPR
(Peripheral Processor) from another core. PPR code is to be executed from MRAM,
so the PPR image must be built for the ``xip`` board variant, or with
:kconfig:option:`CONFIG_XIP` enabled.
17 changes: 17 additions & 0 deletions snippets/nordic-ppr-xip/boards/nrf54h20dk_nrf54h20_cpuapp.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/

&cpuppr_ram3x_region {
status = "okay";
};

&cpuppr_vpr {
execution-memory = <&cpuppr_code_partition>;
/delete-property/ source-memory;
};

&uart135 {
status = "reserved";
};
8 changes: 8 additions & 0 deletions snippets/nordic-ppr-xip/nordic-ppr-xip.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
* SPDX-License-Identifier: Apache-2.0
*/

&cpuppr_vpr {
status = "okay";
};
8 changes: 8 additions & 0 deletions snippets/nordic-ppr-xip/snippet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: nordic-ppr-xip
append:
EXTRA_DTC_OVERLAY_FILE: nordic-ppr-xip.overlay

boards:
nrf54h20dk/nrf54h20/cpuapp:
append:
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20dk_nrf54h20_cpuapp.overlay

0 comments on commit 74f9f86

Please sign in to comment.