Skip to main content
Ayoub_Bnina
Associate III
January 19, 2024
Solved

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

  • January 19, 2024
  • 4 replies
  • 37514 views

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

Best answer by Ayoub_Bnina

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!

4 replies

STTwo-32
Technical Moderator
January 19, 2024

Hello @Ayoub_Bnina and welcome to the ST Community :smiling_face_with_smiling_eyes:.

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 

Ayoub_Bnina
Ayoub_BninaAuthorBest answer
Associate III
January 19, 2024

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!

STTwo-32
Technical Moderator
January 19, 2024

Happy to know that .

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

Best Regards.

STTwo-32 

Visitor II
September 5, 2024

how did you solved the above issue. i am getting same error.

 

Error in initializing ST-LINK device.

Reason: No device found on target.

 

please let me know

mƎALLEm
Technical Moderator
September 5, 2024

Hello @marimuthu02111982 and welcome to the community.

I suggest you to open a new thread if my previous comment doesn't answer your question and tell which board you are using/ which tool and post a screenshot a the message you face.

Thank you for your understanding.

"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."
Associate
January 2, 2025

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

Hello ST Community,

I’m encountering significant difficulties connecting to and debugging my STM32 microcontroller and would greatly appreciate your guidance.

After erasing the full chip flash memory and uploading my code, the microcontroller initially worked as expected. However, after the first successful flash, I’ve been unable to reflash or debug the microcontroller. Here are the error messages I’m encountering across different tools:

Error Messages:

1.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.STM32CubeProgrammer:
UR connection mode is defined with the HWrst reset mode
ST-LINK SN : 003F00164741500420383733
ST-LINK FW : V3J13M4
Board : STM32H747I-DISCO
Voltage : 3.28V
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication.
3.STM32CubeIDE:
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 I’ve Taken:

  1. Verified all physical connections.
  2. Ensured the microcontroller is powered adequately (Voltage: 3.28V).
  3. Configured the software environment for SWD.
  4. Tried initiating a hard reset by pulling the NRST pin low.
  5. Tried to Connect in Power down mode ,but no use.
  6. Attempted debugging/programming via ST-Link Utility, CubeProgrammer, and CubeIDE.


Development board: STM32H747I-DISCO

Questions:

  1. Is there a way to resolve this issue without setting BOOT0 to high?
  2. Are there any other debugging strategies I should try?

I’m still a beginner and would deeply appreciate any insights or advice the community can offer.

Thank you for your time and support!

Associate
January 14, 2025

Can you show me?