cancel
Showing results for 
Search instead for 
Did you mean: 

No target found after first flash

skip_shane
Associate II

I have a board using STM32F103CBT6 chip.  After flashing the board once (through CubeIDE v1.14.0 with ST-Link v2) I cannot flash it again and keep getting the message "No target found".  Here's a snapshot of the chip circuit:

 

skip_shane_0-1711656751619.png

 

When I power up the board it flashes an LED that I programmed so I know the initial programming worked.  But I can't connect again. Any ideas would be appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Connect NRST to the debug header so "Connect Under Reset" can actually work as a method.

Try pulling BOOT0 to VCC so your code doesn't execute.

Check your code, make sure you aren't either explicitly disabling the debug interface, or reconfiguring PA13/PA14

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

Connect NRST to the debug header so "Connect Under Reset" can actually work as a method.

Try pulling BOOT0 to VCC so your code doesn't execute.

Check your code, make sure you aren't either explicitly disabling the debug interface, or reconfiguring PA13/PA14

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

The issue was that I did not configure PA13/PA14 before flashing the first time.  Now that I configured the pins properly the board can flash multiple times.  I'll also add a NRST pinout for this board in case this happens in the future.