Skip to main content
Visitor II
January 16, 2021
Solved

STLINK V2 not detected

  • January 16, 2021
  • 9 replies
  • 8982 views

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??

    This topic has been closed for replies.
    Best answer by KGupt.1

    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

    9 replies

    Visitor II
    January 16, 2021

    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.1Author
    Visitor II
    January 17, 2021

    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.

    Visitor II
    January 17, 2021

    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.

    Graduate II
    January 17, 2021

    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?

    KGupt.1Author
    Visitor II
    January 17, 2021

    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

    Graduate II
    January 17, 2021

    Looks Ok

    Does the board function?

    Could be a board issue

    KGupt.1Author
    Visitor II
    January 17, 2021

    are boot modes correctly connected ?

    Graduate II
    January 17, 2021

    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

    KGupt.1Author
    Visitor II
    January 17, 2021

    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.

    KGupt.1AuthorAnswer
    Visitor II
    January 21, 2021

    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

    Visitor II
    July 3, 2021

    But there may be no characteristic for deleting an detail from listElements. So I should do is shift different factors and overwrite file to the element that I need to delete?