Project scenario:
Error reported:
I have been using J-link all the time, and there has been no problem. I used ST-Link today and found a problem, and I can’t download it.
And it reminded me that I need to upgrade ST-Link. I upgraded according to the regulations, but still reported an error.
The following is my mental journey and the solution.
I hope it will be helpful for you judges.
My Keil software version:
Solution 1:
Go to the official website to download the STM32 ST-LINK Utility, install and use it.
There are many tutorials on the Internet for installation and use. I won’t go into details here, use this software
Update as normal. If it shows that the update is complete, but there are still problems after use, the following method is recommended.
Solution 2:
1. Install java environment
2. Install the firmware upgrade tool
ST-Link firmware upgrade gadget resource - CSDN library
3. Open the folder and execute the command line in the folder STLinkUpgrade
4. Execute the following command on the command line:
java -jar STLinkUpgradeHacked.jar
5. Just run the software normally. It will show whether the update was successful
If the update is successful, then in Keil5, slink still cannot be used normally. Please refer to the next solution.
Solution 3:
The above two solutions are all solutions proposed from ST-Link itself. What if it is not a problem of ST-LINK? ? ?
So I searched a lot of documentation and finally found
Because the new version of Keil has added a verification mechanism for pirated downloaders, we need to replace the original files under the new version of the compiler.
So try to solve:
Download source file: ST-LINK
Copy and paste the folder of the source file to ARM/ in the installation directory of keil5 ( remember to change the name of the downloaded file to STLink first )
If prompted by the computer, just choose to overwrite the file.
After this operation, directly open your own project, and then select STLink to download, there is no problem with the download, and it is solved.
Summarize
So far, my problem has been solved. If you also encounter the same problem, if you can’t solve it, you can contact my official account embedded up, vx: buildupup.
Hope that solves your problem, and hope that the learning never stops. I also hope to like and pay attention.