Skip to main content
Graduate
March 28, 2024
Solved

No target found after first flash

  • March 28, 2024
  • 1 reply
  • 1383 views

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.

 

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    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

    1 reply

    Graduate II
    March 28, 2024

    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

    Graduate
    March 28, 2024

    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.