Use [Technology Old Naughty Development Edition] Experiment---When the SW debugging port is occupied, what should I do?
When the pins are configured in STM32cubeMX, the SW debug port is configured as a normal IO output
Cannot connect to stlink or JTAG for SW debugging
There are two solutions:
1) Use the ISP download method ---through the serial port (CH340 or CP2102 serial port to USB tool), with the mcuisp tool
2) Press and hold the reset button and don't put it down, you can download with SW. Hold down, click download, and then release the reset button
December 29, 2020
The following is the problem I encountered using method 1
Question 1: A serial port tool used displays "pl2303hxa has been discontinued since 2012, please contact the supplier"
Solution: https://blog.csdn.net/wtf3505/article/details/104138727
Problem 2: When you are used to programming a program, set BOOT0 to high level, which makes it impossible to download the program. After setting BOOT1 and BOOT0 to low level, you can download normally
Use the programming steps: http://news.eeworld.com.cn/mcu/article_2017110935751.html
Thanks to Ms. Meng for his help. You can search on WeChat: The old technology urchins join the big family and learn together. December 29, 2020