-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32F103C8T6: Unknown chip id 0042000 on the 2nd st-flash write #669
Comments
I've got a very similar issue with almost the same conditions, I got instead:
I could fix that by moving the boot0 and boot1 to make it boot from from anywhere else but flash, reset it, and then it will accept the st-flash commands again. On the STM32CubeMx set the SYS->Debug option to "Serial Wire" or Jtag and it should work every time. Hope this helps! |
For me the issue was due to a wrong configuration of the STM32 Chip that caused the communication to fail. After programming, It looked like it was "bricked" as the SWDIO and SWCLK pins were reconfigured as GPIO and the error message was displayed when trying a reprogram. I think "unknown chip id! 0x_______" is a synonym of a connection problem, if nothing is connected that is displayed. Maybe a message can be added regarding that to check: physical connections or SWDIO and SWCLK pin configuration. The st-flash was not the issue. Just tested 1.4.0, 1.5.0 and 1.6.0 all working fine! |
Thank you very much for the feedback which appears to be helpful. |
The meaning of the output |
Duplicate of #568. |
st-flash
Sorry, being a newbie I've no idea how to check the programmer hardware version.
The following is pretty self-explanatory: first, the blinkyx uploads and blinks; on an attempt at reuploading it bricks. It looks very much like improper usage of st-flash, yet I failed to google a solution. Or the right manual.
Output:
Thank you,
The stlink project maintainers
The text was updated successfully, but these errors were encountered: