-
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
STM32F103 won't flash #545
Comments
Solved with ST Link Utility. the board was write protected |
Thanks for your report, I think I will add this to the docs so other people will not fail with this. |
Hi, can you help me on that? How can I disable the write protection? I am using Mac OSX. The official St-link utility tool is for windows only, right? |
You probably could mass erase first and I thought write protection is cleared then. Or with some openocd commands (it has more features then texane/stlink). |
Thank you for your rapid answer. I've tried erasing the flash, it worked. However, the issue remains. I will try to use some windows computer to see what happen. :\ |
Have you seen this in the README? When using OpenOCD you could probably invoke |
I've run the ST-LINK Utility (on windows) and I went to Target > Option Bytes... > Disable Read Out Protection (combo box). Done, issue solved. |
I could find clue on disabling the Read Out Protection using openOCD following this link: http://www.openstm32.org/forumthread562. I am using the Blue Pill Stm32F103c8t6 a Chinese board. It is just necessary to add the "monitor flash protect 0 0 11 off" line to the init script of openOCD. [Untested] |
Hi , I had success unlocking stm32 bluepills using the following commands on openocd terminal session:
After that, the device was ready to be programmed again. |
@jeroavf Thanks! This worked for me and Fun bit, when doing the
|
Thanks, I was able to unbrick some STM32F437 with a full chip erase with the windows ST-Link utility, now this is working again on linux st-link :-) |
Hello,
i'm trying to flash an STM32F103 Board via SWD with an STM32F407 Discovery Board. Unfortunately it does not work only with STM32F103 Board.
st-flash
Output:
As you can see, it gives out something unexpected like
Flash: 0 bytes (0 KiB) in pages of 2048 bytes
Does anyone know how to solve it.
Thank you in advance.
The text was updated successfully, but these errors were encountered: