Skip to content

stm32f4xx: use --connect-under-reset for st-flash#175

Merged
jserv merged 1 commit into
f9micro:masterfrom
KunYi:master
Jan 26, 2026
Merged

stm32f4xx: use --connect-under-reset for st-flash#175
jserv merged 1 commit into
f9micro:masterfrom
KunYi:master

Conversation

@KunYi

@KunYi KunYi commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Flashing STM32F4xx family devices with st-flash may fail when the MCU is already running or left in an invalid state after reset.

Observed error from st-flash:

st-flash 1.8.0
ERROR common.c: Can not connect to target.
Please use 'connect under reset' and try again
Failed to connect to target
Failed to parse flash type or unrecognized flash type

Enable "connect under reset" by default when invoking st-flash for the STM32F4xx family, as recommended by st-flash itself, to improve flashing reliability.

Flashing STM32F4xx family devices with st-flash may fail when the MCU is
already running or left in an invalid state after reset.

Observed error from st-flash:

    st-flash 1.8.0
    ERROR common.c: Can not connect to target.
    Please use 'connect under reset' and try again
    Failed to connect to target
    Failed to parse flash type or unrecognized flash type

Enable "connect under reset" by default when invoking st-flash for the
STM32F4xx family, as recommended by st-flash itself, to improve flashing
reliability.
@jserv
jserv merged commit 0b2f47f into f9micro:master Jan 26, 2026
4 checks passed
@jserv

jserv commented Jan 26, 2026

Copy link
Copy Markdown
Member

Thank @KunYi for contributing!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants