Skip to content

Commit 7ff93d7

Browse files
djiatsaf-stkartben
authored andcommitted
scripts: twister: pylib: not needed board id with BOOT-SERIAL mode
STM32CubeProgrammer does not support flashing in BOOT-SERIAL mode using the device's serial number. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent c965767 commit 7ff93d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/pytest-twister-harness/src/twister_harness/device/hardware_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _prepare_runner_args(self) -> tuple[list[str], list[str]]:
9191
elif runner == 'jlink':
9292
base_args.append('--dev-id')
9393
base_args.append(board_id)
94-
elif runner == 'stm32cubeprogrammer':
94+
elif runner == 'stm32cubeprogrammer' and self.device_config.product != "BOOT-SERIAL":
9595
base_args.append(f'--tool-opt=sn={board_id}')
9696
elif runner == 'linkserver':
9797
base_args.append(f'--probe={board_id}')

0 commit comments

Comments
 (0)