From f0d26a9d02b7196896dec9a858a94e0c5e7d1522 Mon Sep 17 00:00:00 2001 From: Miguel Gazquez Date: Thu, 6 Feb 2025 16:51:42 +0100 Subject: [PATCH] runners: add '--dt-flash=y' for silabs commander Due to a bug in scripts/west_commands/runners/core.py, the value of --dt-flash can currently be True, False, or the default value, 'n'. The script silabs_commander.py only check the truth value of --dt-flash, so the default value is interpreted as a truthy. That means that the default case was effectively the same as if dt-flash was set to True. Set this flag to True by default explicitly, in the same way as done for pyocd or jlink. Signed-off-by: Miguel Gazquez --- boards/common/silabs_commander.board.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/common/silabs_commander.board.cmake b/boards/common/silabs_commander.board.cmake index e6b5f211985..1d911797993 100644 --- a/boards/common/silabs_commander.board.cmake +++ b/boards/common/silabs_commander.board.cmake @@ -1,4 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 board_set_flasher_ifnset(silabs_commander) -board_finalize_runner_args(silabs_commander) +board_finalize_runner_args(silabs_commander "--dt-flash=y")