Skip to main content
NKann.1
Associate II
May 25, 2021
Solved

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

  • May 25, 2021
  • 38 replies
  • 21091 views

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.

This topic has been closed for replies.
Best answer by LaurentL

OK, you didn't connect the Reset pin.

If you can add the connection, it's better.

Then, without reset coming from STLink, you should avoid "Connect under reset" mode in debugger tab in debug config.

Like you did on STM32CubeProgrammer, use "Software Reset system".

Try to mass erase the device with STM32CubeProgrammer before debug.

38 replies

NKann.1
NKann.1Author
Associate II
May 26, 2021

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
May 26, 2021

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).

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
LaurentL
ST Employee
May 26, 2021

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NKann.1
NKann.1Author
Associate II
June 2, 2021

JTAG is working now.

LaurentL
ST Employee
June 2, 2021

Hello, glad it works.

You can mark my previous answer as best for people to find the answer directly in the future.

Yes, JTAG Reset pin is not mandatory so left unconnected is ok.

It is not used by STLINK, so no issue.

Rgds,

Laurent

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
NKann.1
NKann.1Author
Associate II
June 2, 2021

Thank you so much.

NKann.1
NKann.1Author
Associate II
June 7, 2021

my Microcontroller has 1.4 Mb of RAM. I need 700 Kb. when i am exceeding 128 Kb it is showing error (RAM overflowed by 1904 bytes).

I have attached screenshot and one .txt file that has error message. please resolve this problem.0693W00000BaI3EQAV.jpg0693W00000BaI34QAF.jpg

Tesla DeLorean
Guru
June 7, 2021

This is already a monstrously long thread, honestly got a NEW problem, start a NEW thread.

The 1.4MB is likely NOT contiguous, you're going to need to define the different spaces in the Linker Script (.LD) or related UI, and then direct content into the various RAM regions depending on appropriateness, either at an object/routine level or via the attribute directive.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
NKann.1
NKann.1Author
Associate II
June 8, 2021

Sorry about that . I will make threads as you have suggested .

Thanks for your suggestion. i will try it out.

Yack
Visitor II
December 11, 2022

Hello everyone,

I have similar problem with Nucleo 32 G431KB. I just opened brand new package , tried to run a sample program and was forced to update firmware in ST Link V3. Seems like update failed and the device is basically not upgradeable. Unable to connect/upgrade through STM32 IDE or ST Utility.

I have some other Nucleo boards (G431RB) and this one works without an issue. Any idea what do to with this ?

Jacek