File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,14 @@ if(CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR CONFIG_BOARD_NRF54H20DK_NRF54H20_C
12
12
board_runner_args (jlink "--device=CORTEX-M33" "--speed=4000" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE} " )
13
13
include (${ZEPHYR_BASE} /boards/common/jlink.board.cmake )
14
14
endif ()
15
+
16
+ if (CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUFLPR )
17
+ if (CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR )
18
+ set (JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR} /support/nrf54h20_cpuppr.JLinkScript )
19
+ else ()
20
+ set (JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR} /support/nrf54h20_cpuflpr.JLinkScript )
21
+ endif ()
22
+
23
+ board_runner_args (jlink "--device=RISC-V" "--speed=4000" "-if SW" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE} " )
24
+ include (${ZEPHYR_BASE} /boards/common/jlink.board.cmake )
25
+ endif ()
Original file line number Diff line number Diff line change
1
+ int InitTarget(void) {
2
+ // Base address where DMI registers can be found in the APB address space
3
+ JLINK_ExecCommand("CORESIGHT_SetCoreBaseAddr = 0x5F8D4400");
4
+
5
+ // Use AP[x] to communicate with the RISC-V, flpr = APP
6
+ JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0");
7
+
8
+ return 0;
9
+ }
Original file line number Diff line number Diff line change
1
+ int InitTarget(void) {
2
+ // Base address where DMI registers can be found in the APB address space
3
+ JLINK_ExecCommand("CORESIGHT_SetCoreBaseAddr = 0x5F908400");
4
+
5
+ // Use AP[x] to communicate with the RISC-V, ppr = APP
6
+ JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0");
7
+
8
+ return 0;
9
+ }
You can’t perform that action at this time.
0 commit comments