Skip to content

Conversation

@mathieuchopstm
Copy link
Contributor

Add support for the standard --dev-id argument used to select target ST-Link debug probe based on serial number. Note that this could already be achieved using custom argument --conn-modifiers. (--dev-id <XXX> is equivalent to --conn-modifiers sn=<XXX>)

Add support for the standard `--dev-id` argument used to select
target ST-Link debug probe based on serial number. Note that this
could already be achieved using custom argument `--conn-modifiers`.
(`--dev-id <XXX>` is equivalent to `--conn-modifiers sn=<XXX>`)

Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
@sonarqubecloud
Copy link

@pdgendt pdgendt requested a review from erwango November 28, 2025 14:53
Copy link
Member

@erwango erwango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's migrate Twister hardware adapter script to make use of this new option instead of current tool-opt.

@mathieuchopstm
Copy link
Contributor Author

mathieuchopstm commented Nov 28, 2025

+

elif runner == "stm32cubeprogrammer" and product != "BOOT-SERIAL":
command.append(f"--tool-opt=sn={board_id}")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: West West utility platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants