STM32G031G8: Verification of flash failed - and using STM32CubeIDE to flash temporarily fixes it? #1133
Closed
6 tasks done
Labels
Milestone
st-flash
This hardware configuration flashes correctly when using the STM32CubeIDE software (flashing using
STM32CubeProgrammer v2.7.0-RC1
).Flashing using
st-flash
v1.6.1, I get:"Verification of flash failed" is misleading; the flash has apparently not occurred at all. Using my UART output, I can see that the old binary is still on the device.
What's especially interesting is the following. If I flash a binary through CubeIDE, and then immediately attempt to flash another binary with
st-flash
, it suddenly works:... and I'm able to verify via UART output that this binary has in fact loaded.
However, if I then try to flash a different binary with
st-flash
, it persistently breaks again, same as the output given at the top of the post -- untilSTM32CubeProgrammer
performs a flash again.Seems to me as though
STM32CubeProgrammer
is performing a pre- or post-flash step thatst-flash
is not. The effect of the step must persist after its flash is complete.I can see that STM32G0 support was built into
st-flash
a while ago. However, no G0 chips seem to have been tested in conjunction with the NUCLEO-F302R8 programmer board, so I'm outside of official support in that sense!Many thanks.
The text was updated successfully, but these errors were encountered: