Skip to content

Conversation

@KunYi
Copy link
Contributor

@KunYi KunYi commented Jan 26, 2026

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
Copy link
Member

jserv commented Jan 26, 2026

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