-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: boards: nordic: coresight_stm: Add flpr and ppr support
Add flpr and ppr core to the sample. Since there are only 2 UARTs available on DK, local UART configuration is using only cpuapp and cpurad. (cherry picked from commit d11997d) Original-Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> GitOrigin-RevId: d11997d Cr-Build-Id: 8735619482632649473 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8735619482632649473 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Ica2080f87053beb989d7b8b7b8addee71808a9fc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5896231 Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com> Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com> Tested-by: Fabio Baltieri <fabiobaltieri@google.com> Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
- Loading branch information
1 parent
ba920d5
commit 8816f6b
Showing
6 changed files
with
57 additions
and
15 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
16 changes: 16 additions & 0 deletions
16
samples/boards/nordic/coresight_stm/boards/nrf54h20dk_nrf54h20_cpuapp.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,16 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&cpuppr_vpr { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuppr_ram3x_region { | ||
status = "okay"; | ||
}; | ||
|
||
&cpuflpr_vpr { | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
CONFIG_LOG=y | ||
CONFIG_CONSOLE=n | ||
CONFIG_UART_CONSOLE=n | ||
CONFIG_SERIAL=n | ||
CONFIG_BOOT_BANNER=n | ||
CONFIG_PRINTK=n |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if("${SB_CONFIG_RAD_CORE_BOARD}" STREQUAL "") | ||
message(FATAL_ERROR | ||
"Target ${BOARD} not supported for this sample. " | ||
"There is no remote board selected in Kconfig.sysbuild") | ||
endif() | ||
|
||
set(RAD_APP remote) | ||
set(REMOTE_APP remote) | ||
|
||
ExternalZephyrProject_Add( | ||
APPLICATION ${RAD_APP} | ||
SOURCE_DIR ${APP_DIR}/${RAD_APP} | ||
BOARD ${SB_CONFIG_RAD_CORE_BOARD} | ||
APPLICATION ${REMOTE_APP}_rad | ||
SOURCE_DIR ${APP_DIR}/${REMOTE_APP} | ||
BOARD ${SB_CONFIG_BOARD}/${SB_CONFIG_SOC}/cpurad | ||
) | ||
|
||
# There are sample configurations which do not use PPR. | ||
if(SB_CONFIG_APP_CPUPPR_RUN) | ||
ExternalZephyrProject_Add( | ||
APPLICATION ${REMOTE_APP}_ppr | ||
SOURCE_DIR ${APP_DIR}/${REMOTE_APP} | ||
BOARD ${SB_CONFIG_BOARD}/${SB_CONFIG_SOC}/cpuppr | ||
) | ||
endif() | ||
|
||
# There are sample configurations which do not use FLPR. | ||
if(SB_CONFIG_APP_CPUFLPR_RUN) | ||
ExternalZephyrProject_Add( | ||
APPLICATION ${REMOTE_APP}_flpr | ||
SOURCE_DIR ${APP_DIR}/${REMOTE_APP} | ||
BOARD ${SB_CONFIG_BOARD}/${SB_CONFIG_SOC}/cpuflpr | ||
) | ||
endif() |