-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nrf fromtree] samples: boards: nordic: coresight_stm: Add flpr and p…
…pr 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. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit d11997d)
- Loading branch information
1 parent
0684fbd
commit ce408aa
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/nrf/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() |