Skip to main content
Associate III
March 15, 2025
Solved

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

  • March 15, 2025
  • 2 replies
  • 2512 views

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

 

 

This topic has been closed for replies.
Best answer by mƎALLEm

@No_Name wrote:

I use ST-Link V2 mini, and the target is STM32 bluepill STM32F103C8T6.


Hello,

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We suggest to purchase a genuine products and purchase them from known and trusted distributors.

Thank you for your understanding.

2 replies

KDJEM.1
Technical Moderator
March 17, 2025

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.
No_NameAuthor
Associate III
March 17, 2025

yes if in STM32CubeProgrammer it can, but I want to see the debug output of the STM32 device, I use ST-Link V2 mini, and the target is STM32 bluepill STM32F103C8T6.

mƎALLEm
mƎALLEmBest answer
Technical Moderator
April 18, 2025

@No_Name wrote:

I use ST-Link V2 mini, and the target is STM32 bluepill STM32F103C8T6.


Hello,

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We suggest to purchase a genuine products and purchase them from known and trusted distributors.

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."
No_NameAuthor
Associate III
March 17, 2025

I am using STLink V2 will buying STLink V3 solve the problem?

Andrew Neil
Super User
March 17, 2025

That depends on what the problem is!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.