Skip to content

Commit 161fa14

Browse files
MaureenHelmgalak
authored andcommitted
boards: mimxrt1020_evk: Enable pyocd runner
Adds support for debugging and flashing the mimxrt1020_evk board via pyocd. Signed-off-by: Maureen Helm <[email protected]>
1 parent 9554ae9 commit 161fa14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

boards/arm/mimxrt1020_evk/board.cmake

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,18 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7+
set_ifndef(OPENSDA_FW jlink)
8+
9+
if(OPENSDA_FW STREQUAL jlink)
10+
set_ifndef(BOARD_DEBUG_RUNNER jlink)
11+
set_ifndef(BOARD_FLASH_RUNNER jlink)
12+
elseif(OPENSDA_FW STREQUAL daplink)
13+
set_ifndef(BOARD_DEBUG_RUNNER pyocd)
14+
set_ifndef(BOARD_FLASH_RUNNER pyocd)
15+
endif()
16+
17+
board_runner_args(pyocd "--target=mimxrt1020")
718
board_runner_args(jlink "--device=MIMXRT1021xxx5A")
19+
20+
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
821
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

0 commit comments

Comments
 (0)