Skip to content

feat: update stm32cubeprog options#3028

Open
fpistm wants to merge 3 commits into
stm32duino:mainfrom
fpistm:stm32cubeprog_update
Open

feat: update stm32cubeprog options#3028
fpistm wants to merge 3 commits into
stm32duino:mainfrom
fpistm:stm32cubeprog_update

Conversation

@fpistm

@fpistm fpistm commented Jul 21, 2026

Copy link
Copy Markdown
Member

This PR includes:

  • chore: use -b instead of -f for STM32CubeProgrammer
  • feat: add freq option for swd upload
    Ex: Nucleo_64.menu.pnum.NUCLEO_C562RE.upload.freq=3300
  • feat: add stlink_sn option for swd upload
    It allows to specify serial number of the ST-Link device (if multiple ST-Link devices are connected)
    Goal is to use it over the boards.local.txt as it make non-sense to hardcode ST-Link SN in the boards.txt.
    Ex: Nucleo_64.menu.pnum.NUCLEO_C562RE.upload.stlink_sn=003100344142501020353451

See stm32duino/Arduino_Tools#119

fpistm added 3 commits July 21, 2026 14:10
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
It allows to specify serial number of the ST-Link device
(if multiple ST-Link devices are connected)

Goal is to use it over the boards.local.txt.
Ex:
Nucleo_64.menu.pnum.NUCLEO_C562RE.upload.stlink_sn=003100344142501020353451

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>

@Aymane-ST Aymane-ST left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM : )

@github-project-automation github-project-automation Bot moved this from In progress to Reviewer approved in STM32 core based on ST HAL Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Reviewer approved

Development

Successfully merging this pull request may close these issues.

2 participants