cancel
Showing results for 
Search instead for 
Did you mean: 

STLINK V2 not detected

KGupt.1
Associate III

0693W000007BXyxQAG.pngI have ST-LINK V2 Programmer and when I connect this with STM32MCU, it shows an error like this I have checked connections, jumper Wire.

Changed the port also. But still, it is showing No STM32 Target Found.

0693W000007BXysQAG.png 

For checking Whether My Programmer is corrupted or not, I have checked ST-LINK with STM8 by connecting to SWIM pinout and it successfully uploads on to my STM8.

So is MY MCU corrupted or damaged, I have an STM32F103C8 Blue chip board.

And have configured its Boot Mode as shown in Pic.

BOOT 0 : 0

Boot 1: opened

0693W000007BXz2QAG.jpg 

Please Help, I am stuck on this for 2 days scratched my head but can't find what the is the issue??

1 ACCEPTED SOLUTION

Accepted Solutions
KGupt.1
Associate III

Well, I got the solution, I connected my Boot pins like this and then performed the erase chip thing in STM Utility with connecting under reset settings and my chip gets erased successfully and it is working fine now.

But Still, the Problem is coming with STM32CubeIDE.

It is not programming using STM32CubeIDE while successfully getting flashed with STM32CubeProgrammer. Seems there is a problem with my Setting of STM32CubeIDE.

I have raised this query with STM32CubeIDE in separate thread:

0693W000007CFlYQAW.jpg

View solution in original post

11 REPLIES 11

Hello

use STLink utility to erase the chip, in settings use "connect under reset"

The GND pin of bluepil must be common with the STLink GND

In case that the program itself deactivates debuging, Press for a litle time RST button just before click to "connect" button and release it after click.

Usualy the "problem" solves by connecting the RST pad from bluepil to T-NRST pin of STLink.

KGupt.1
Associate III

0693W000007BY4HQAW.png

I am getting this error on ST-LINK Utility

I have connected SWIO, SWCLK, NRST pins of ST-Link to blue-chip.

And Connected GND pins and 3.3V of st-link to Blue chip respective pins.

Hello

>I have connected SWIO

You mean SWDIO or DIO and not SWO..

In first picture you published i observe PC13 LED is ON. Under reset must be off. An indication that a HW problem exists, is when you keep reset pressed and the PC13 LED doen't turn off.

Another posibility is the RDP protection to be enabled. In this case use STM32CubeProgrammer in UART mode. PA( and PA10 pins must be connected to a USB to serial adapter and recognized from STM32CubeProgrammer as COMx. Before you click "connect" BOOT0 must be already in Hi state (3.3v) When connect successfuly , deactivate RDP option bytes, do a dystem reset and then MCU will be ready to communicate with STLink.

Show a picture of the connections to the ST-LINK, preferably a picture of the connections at both end, at high resolution and in-focus.

Are we sure this isn't using an STM32 clone part?

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

These are Connections,

For STM32 F103

White: GND

Orange: SWCLK

Black: SWIO

Grey: 3V3

0693W000007BZFBQA4.jpgRed: NRST

Magenta: GND0693W000007BZFVQA4.jpg 

For ST-LINK,

White: GND

Orange: SWCLK

Black: SWIO

Grey: 3V3

Red: NRST

Magenta: GND

0693W000007BZFkQAO.jpg 

0693W000007BZFfQAO.jpg

 How to get to know whether my STM32 is cloned or not

Looks Ok

Does the board function?

Could be a board issue

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

are boot modes correctly connected ?

KGupt.1
Associate III

STM utilty is not able to erase the chip.....

so could it be that it is not able to communicate with STM32 MCU because it might got corrupted.

Really shouldn't make a lot of difference.

Set BOOT0 to 1 so it doesn't run code from FLASH, but I'm still leaning toward it being a chip/board issue. But I can't read the part number

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