mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 13:32:33 +00:00
Now that the jlink runner supports the flash command, set BOARD_FLASH_RUNNER when the OpenSDA or LPCLink debug adapter is programmed with jlink firmware. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
16 lines
468 B
CMake
16 lines
468 B
CMake
set_ifndef(OPENSDA_FW daplink)
|
|
|
|
if(OPENSDA_FW STREQUAL jlink)
|
|
set_ifndef(BOARD_DEBUG_RUNNER jlink)
|
|
set_ifndef(BOARD_FLASH_RUNNER jlink)
|
|
elseif(OPENSDA_FW STREQUAL daplink)
|
|
set_ifndef(BOARD_DEBUG_RUNNER pyocd)
|
|
set_ifndef(BOARD_FLASH_RUNNER pyocd)
|
|
endif()
|
|
|
|
board_runner_args(jlink "--device=MKL25Z128xxx4")
|
|
board_runner_args(pyocd "--target=kl25z")
|
|
|
|
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
|
|
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|