cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link Utility, Can not connect to target!

zrtn
Associate

zrtn_0-1710845376910.png

16:19:16 : Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
16:19:44 : No target connected

Hi this the error im facing when try to program using stlinkV2 on a custom board

Tried switching to powerdown mode also and also checked the connections of pcb 

 what could be the issue

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

Hello,

First, ST-Link Utility tool is obsolete so please use STM32CubeProgrammer instead.

Second, check the power supply of your MCU.

Third: are you using one of low power modes in the program already loaded in the MCU?

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.

View solution in original post

5 REPLIES 5
SofLit
ST Employee

Hello,

First, ST-Link Utility tool is obsolete so please use STM32CubeProgrammer instead.

Second, check the power supply of your MCU.

Third: are you using one of low power modes in the program already loaded in the MCU?

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.

mubarak_0-1729658741002.png

i have the same issue i used the STM32CubeProgrammer but is not connecting please help me 

 

Hello @mubarak and welcome to the community,

Please open a new thread as this is closed and provide more details about your HW: MCU part number HAW: ST board or Custom board. If custom board you need to share your schematics.

Tips on how to post a thread on this link.

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.
ycx
Associate

Hi,i had the same question,after i used STlink-V2 to connected my a custom board,i could not connected my chip(stm32f407ZE) anymore.it looked like RDP(read out protection) level 2,I tryed to pull up BOOT to high but it is Invalid。the error also is:

Can not connect to target!

Please select "Connect Under Reset" mode from Target->Settings menu and try again.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.

in two months,this error had cause my 5 boards bircked.programes is disappeared.the chip could do nothing.


@ycx wrote:

it looked like RDP(read out protection) level 2


If your MCU is at RDP level 2, it's no more recoverable. So need to replace or use another MCU.

To all: please open a new thread as this was closed.

Thank you.

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.