cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to STM32F103TBU with ST-Link

MakerJake
Associate II

Hello all, I have been working on a keyboard PCB with an STM32F103, and I have started trying to program it with the STM32duino bootloader however, I have been unable to connect to the chip. This is my first time using the STM32CubeProgrammer with an ST-Link V2. I have verified the voltage across several points in the PCB. I have previously used similar designs with STM32F07 chips and had no issues.

 

Most of the time, I get an error of "No STM32 Target found" and sometimes I get the error "ST-LINK error (DEV_TARGET_CMD_ERR)".

I have tried my best to look at past posts on the forum, but none of the solutions have fixed my issue. 

I am happy to provide extra measurements and provide more information. Tips on how to troubleshoot this are greatly appreciated. Thank you in advance!

 

Schematic and PCB screenshot.

schem.pngPCB.png

11 REPLIES 11

The ST-Link is connected to the board's ground.

MakerJake
Associate II

Update!!! I have successfully connected to the chip! I used a different PCB from the same batch and connected the ST-Link, and it worked. I am unsure why the first chip didn't work, but I am happy to have it working.