cancel
Showing results for 
Search instead for 
Did you mean: 

Target no device found & Can not connect to target!" and "No STM32 target found!

Ayoub_Bnina
Associate III

Hello ST Community,

I'm encountering difficulties while attempting to connect and debug my STM32 microcontroller, and I'm seeking guidance from the community. I have erased the full chip flash memory and uploaded my code but suddenly I start getting these error messages,

Error Messages:
1. In ST-Link Utility:

Can not connect to target!
If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.
If you're trying to connect to a low-frequency application, please select a lower SWD Frequency mode from Target->Settings menu.

2. In Cube Programmer:

UR connection mode is defined with the HWrst reset mode
ST-LINK SN : 003F00164741500420383733
ST-LINK FW : V3J13M4
Board : STM32H7B3I-DK
Voltage : 3.28V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication.

 

3. In CubeIDE :

---------------------

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled

Target no device found

Error in initializing ST-LINK device.
Reason: No device found on target.

----------------------

Steps Taken:
- Verified physical connections.
- Powered the microcontroller adequately.
- Used ST-Link utility and CubeIDE for debugging.
- Configured the software environment for SWD.

I've also tried initiating a hard reset by pulling the NRST pin low, but unfortunately, I'm still encountering the same error.

I'm reaching out to the community for insights into resolving the connectivity issue. If anyone has encountered similar problems or has expertise in debugging STM32 microcontrollers, your input would be highly appreciated, I am still a beginner in this field.
 
- Debugger/Programmer: ST-LINK V3J13M4
- Development Board: STM32H7B3I-DK

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @STTwo-32 ,

Thank you for your response, I want to bring to your attention that I have set the mode to Power Down and it connected successfully.

Thank you!

View solution in original post

3 REPLIES 3
STTwo-32
ST Employee

Hello @Ayoub_Bnina and welcome to the ST Community 😊.

I suggest you Make sure that your STLink firmware is upgraded. You can also try to "Connect under reset" or "power down" mode. Finally, you can refer to this post for more details.

Best Regards.

STTwo-32 

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.

Hi @STTwo-32 ,

Thank you for your response, I want to bring to your attention that I have set the mode to Power Down and it connected successfully.

Thank you!

Happy to know that .

So, I think you can select as best answer the post that solved your issue.

Best Regards.

STTwo-32 

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.