1
\$\begingroup\$

I upgraded the firmware using stlink>upgrade firmware (using cheap stlink v2) with stm32f103c8t6 connected (boot0 and boot1 are both 0).
After successful upgrade i unplugged and plugged it back and then i can no longer connect to the stm32f103c8t6 using stlink v2

note:below images show the screenshots of my firmware. I can upgrade downgrade firmware but no longer connect and program or read the binary, also the software used is st32 stlink-utility firmware version during connection

UPDATE:I noticed that the problem started when i downloaded a blink program using stmcubemx and keil .The program is working successfully but i cannot reprogram or modify it shows st link usb communication error

\$\endgroup\$
3
\$\begingroup\$

I found my Answer to my own question

Steps to follow to solve the problem

  1. I have had to pull the BOOT0 pin high during power up to activate the bootloader. Then go to Target menu and Erase chip.
  2. Put Boot0 to low and the use stm32cubemx and u need to configure the serial wire on stmcube pinout tab. on pinout tab, click SYS and change debug option to serial wire.
  3. Now everything should work as normal.
\$\endgroup\$
  • \$\begingroup\$ I am glad that you got the answer because I had the same situation and ended up buying another STlink so now I have two working STlinks Thank you \$\endgroup\$ – Tjaart van aswegen Jan 7 at 20:28
  • \$\begingroup\$ @Tjaartvanaswegen glad it worked for you too \$\endgroup\$ – Amrith Jan 9 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.