Skip to main content
Visitor II
July 15, 2025
Question

can't debug code using st link

  • July 15, 2025
  • 2 replies
  • 485 views

Hi community @STTwo-32 ,

I am using stm32f407vet6 board I am new to stm32 board.I wrote an Hello world program in STM32cubeide and i try to debug the code.I bought an ST-link v2 from online.when I try to debug the code it says frimware upgrade require.I upgrade the frimware in DFU mode then it shows this error

Sabarinathan1_0-1752568379016.png

and I watched a youtube vedio where he use st-link utility software and he instructed to connect under reset mode and use full chip erase.But when i try to connect under reset mode it shows this error message 

Sabarinathan1_1-1752568635045.png

i also tried stm32 cube programmer 

Sabarinathan1_2-1752568705778.png

it says not connected on the top right and also target voltage 0.i also checked power connection and connection between st-link and my board.

This topic has been closed for replies.

2 replies

ST Technical Moderator
July 16, 2025

Hello @Sabarinathan1 and welcome to the Community

What does your ST-LINK look like ? Make sure that you use a genuine ST-LINK/V: How to recognize a genuine ST-LINK/V2 versus a cloned one.

Check all pins, jumpers, Debug pins and make sure that there is no conflict with other pins.

Refer to the checklist in this article that will help you to fix such issue:

How to solve connection errors when connecting and programming the STM32 target board

 
In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
CTapp.1
Senior III
July 16, 2025

If it is a genuine ST-Link, then I've seen this in the past and needed a reboot to fix.

All posts are made in a personal capacity. MISRA C++ Chair, MISRA C WG Member, Director The MISRA Consortium Limited (TMCL)