STM32F103ZET6 suddenly cannot download the program? ?

I used to use the smallest system board f103z8t6 before, but found that there are only three serial ports, which may not be enough for future competitions. Ready to switch to F407 or F103ZET6.

When I first borrowed a board F103ZET6, I found that I couldn’t download the program no matter whether I used J-link or st-link (clicked on my debug and I couldn’t find my corresponding chip), and then there were various troubleshooting errors. There are no errors.

At this time, I asked Brother Ding, who borrowed my board, and watched him demonstrate it again. Is it possible to download the program in his computer source program? ?

I saw him open his HAL library program, click the download button.

Good guy, he downloaded it too.

Just when I wondered if there was something wrong with the computer, I asked the big brother and senior brother.

Finally a meal operation, solved! !

The reason is: HAL locked the download method when configuring SYS. (My program uses the standard library)

 It's these two guys! !

Then you click on SYS in the HAL library and you will see:

 Modify the above JTAG option to this:

 Then you can download the HAL library program again, and use this program to flush out the previous program.

Then you can download the standard library functions! !

Guess you like

Origin blog.csdn.net/qq_60043905/article/details/126190567