cancel
Showing results for 
Search instead for 
Did you mean: 

No ST-LINK detected! Please connect ST-LINK and restart the debug session. Please help me. I am user.

NKann.1
Associate III

I am using STM32CubeIDE for my project . when i want to run the code i am getting this pop up.i am not able to solve this issue.

45 REPLIES 45
NKann.1
Associate III

i tried with open ocd and  click on "show generator options" to select the "Software system reset".

now i am getting this error bellow0693W00000APrRoQAL.jpg0693W00000APrNJQA1.jpg

LaurentL
ST Employee

Can you try on an empty project to be sure that the code is ok.

Mass erase the device before debug.

Can you add "-d" in Openocd Options and attach the console log text to see why you have the "auto_probe failed".

Which device did you select in the project ?

And which device you have exactly ?

STM32H7B0VBT6 with a Q letter at the end ? or no letter ?

If you have the Q letter, it is a SMPS device and power supply is different from a normal device.

So the application schematic must reflect the part number on supplies.

Also on Cube project, select the right device.

NKann.1
Associate III

with SWD and internal clock even after the message "Debugger connection lost....shutting down " i am able to get some signal on my oscilloscope.

this code is for toggling LED.

but i am not able to operate it with JTAG.

0693W00000APrjYQAT.jpg

NKann.1
Associate III

After selecting JTAG, it show some warning and i see red mark in rcc. if i put cursor it shows "crs sync conflict with DEBUG: Debug JTAG(5 pins)".

when i select low speed clock it becomes yellow. Please help me.

0693W00000APrhAQAT.jpg

LaurentL
ST Employee

OK, I think you need to double check the pins used for JTAG that can conflict on RCC stuff.

Why do you want to use JTAG if SWD is working fine ?

SWD uses less pins (no need of JTRST or JTDO) and you can do SWV with SWO pin (JTDO).

LaurentL
ST Employee

Looking again your schematic, it seems you are connecting Reset pin of STLink Pin 15 of 20 pin connector on your board to JTRST.

It should be connected to NRST of Mcu, not JTRST.

I think you should check STLink user manual on pins used.

On the 20 pin connector table, it is T_NRST for pin 15.

JTAG is working now.

i have connected pin 15 of 20 pin connector to NRST of MCU,now its working.

In manual of MCU pin 90 is JTRST.and also during configuration it is selecting pin 90 (PB4).

my question is will pin 90 of MCU be kept open ?

0693W00000BZrWYQA1.jpg0693W00000BZrWTQA1.jpg

0693W00000BZrWiQAL.jpg