From cd6c36d7b4c928e1ec4c9e064967160929c703ff Mon Sep 17 00:00:00 2001 From: Casper Meijn Date: Sat, 11 Dec 2021 17:27:49 +0100 Subject: [PATCH] runners: pyocd: Enable semihosting in pyOCD If ARM semihosting is selected, automatically enable the pyOCD feature. This way the console output is directly available on the telnet port. Signed-off-by: Casper Meijn --- boards/common/pyocd.board.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boards/common/pyocd.board.cmake b/boards/common/pyocd.board.cmake index 2d31d6fe5ec..78d365bd30f 100644 --- a/boards/common/pyocd.board.cmake +++ b/boards/common/pyocd.board.cmake @@ -2,4 +2,7 @@ board_set_flasher_ifnset(pyocd) board_set_debugger_ifnset(pyocd) +if(CONFIG_SEMIHOST_CONSOLE) + board_runner_args(pyocd "--tool-opt=-S") +endif() board_finalize_runner_args(pyocd "--dt-flash=y")