Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf fromtree] boards: nordic: nrf54h20dk: VPRs board runner config #2351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions boards/nordic/nrf54h20dk/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ if(CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR CONFIG_BOARD_NRF54H20DK_NRF54H20_C
board_runner_args(jlink "--device=CORTEX-M33" "--speed=4000" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE}")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
endif()

if(CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUFLPR)
if(CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR)
set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf54h20_cpuppr.JLinkScript)
else()
set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf54h20_cpuflpr.JLinkScript)
endif()

board_runner_args(jlink "--device=RISC-V" "--speed=4000" "-if SW" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE}")
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
endif()
9 changes: 9 additions & 0 deletions boards/nordic/nrf54h20dk/support/nrf54h20_cpuflpr.JLinkScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
int InitTarget(void) {
// Base address where DMI registers can be found in the APB address space
JLINK_ExecCommand("CORESIGHT_SetCoreBaseAddr = 0x5F8D4400");

// Use AP[x] to communicate with the RISC-V, flpr = APP
JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0");

return 0;
}
9 changes: 9 additions & 0 deletions boards/nordic/nrf54h20dk/support/nrf54h20_cpuppr.JLinkScript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
int InitTarget(void) {
// Base address where DMI registers can be found in the APB address space
JLINK_ExecCommand("CORESIGHT_SetCoreBaseAddr = 0x5F908400");

// Use AP[x] to communicate with the RISC-V, ppr = APP
JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0");

return 0;
}
Loading