snippets: add snippet to boot Nordic PPR core from RAM
Add a new snippet that allows booting PPR core found in some Nordic SoCs, configuring it with CONFIG_XIP=n. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
d1e59cf39f
commit
75839ea4ad
4 changed files with 50 additions and 0 deletions
11
snippets/nordic-ppr-ram/README.rst
Normal file
11
snippets/nordic-ppr-ram/README.rst
Normal file
|
@ -0,0 +1,11 @@
|
|||
.. _nordic-ppr-ram:
|
||||
|
||||
Nordic boot PPR snippet with execution from RAM (nordic-ppr-ram)
|
||||
################################################################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
This snippet allows users to build Zephyr with the capability to boot Nordic PPR
|
||||
(Peripheral Processor) from another core. PPR code is executed from RAM. Note
|
||||
that PPR image must be built with :kconfig:option:`CONFIG_XIP` disabled.
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Nordic Semiconductor
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
&cpuppr_ram3x_region {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&cpuppr_vpr {
|
||||
execution-memory = <&cpuppr_ram3x_region>;
|
||||
};
|
||||
|
||||
&uart135 {
|
||||
status = "reserved";
|
||||
};
|
15
snippets/nordic-ppr-ram/nordic-ppr-ram.overlay
Normal file
15
snippets/nordic-ppr-ram/nordic-ppr-ram.overlay
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Nordic Semiconductor
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/* code is sourced from cpuppr code partition */
|
||||
&cpuppr_vpr {
|
||||
status = "okay";
|
||||
source-memory = <&cpuppr_code_partition>;
|
||||
};
|
||||
|
||||
/* code partition size must match RAM size */
|
||||
&cpuppr_code_partition {
|
||||
reg = <0x126000 DT_SIZE_K(28)>;
|
||||
};
|
8
snippets/nordic-ppr-ram/snippet.yml
Normal file
8
snippets/nordic-ppr-ram/snippet.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
name: nordic-ppr-ram
|
||||
append:
|
||||
EXTRA_DTC_OVERLAY_FILE: nordic-ppr-ram.overlay
|
||||
|
||||
boards:
|
||||
nrf54h20pdk_nrf54h20_cpuapp:
|
||||
append:
|
||||
EXTRA_DTC_OVERLAY_FILE: boards/nrf54h20pdk_nrf54h20_cpuapp.overlay
|
Loading…
Add table
Add a link
Reference in a new issue