cancel
Showing results for 
Search instead for 
Did you mean: 

Error: init mode failed (unable to connect to the target)

No_Name
Associate

Hi,
I'm a beginner in STM32.

I tried to debug STM32F103C8T6 but it always fails I have changed the st link 5 times and everything is the same there is no change, I don't know what to do,.
here are the errors and settings on my debugger

 

 

Open On-Chip Debugger 0.12.0+dev-00600-g090b431b1 (2024-09-13-19:14) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 64568 for tcl connections
Info : Listening on port 62346 for telnet connections
Info : STLINK V2J45S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.210020
Error: init mode failed (unable to connect to the target)

 

Screenshot 2025-03-16 053044.png

 

 

2 REPLIES 2
KDJEM.1
ST Employee

Hello @No_Name and welcome to the community;

 

Are you able to connect properly to your device using STM32CubeProgrammer?

Try to ensure an STLink firmware upgrade first.

Do you still have same issue?

Thank you.

Kaouthar

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.