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

10 REPLIES 10
huan123
Associate

Can you show me?