Skip to main content
Mauri
Associate
Solved

STM32CubeIde Failed to start GDB Server on STM32F103C8

hello,

I have the same problem posted by H.Ahmed on October 2022, read also in other posts:

"Failed to start GDB Server Error Initializing ST-LINK device

Reason (18) Could not verify ST device!"

I tried all suggestions found on web, but no help.

I'm using STM32CubeIde 1.14.1,  ST-Link V2  (updated)

Connection is very simple and should be OK, because if i program the device wth ST-Link Utility

or with STM32CubeProgrammer, all works fine.

I tried with CubeIde 1.8.0 as suggested in another post, but no luck.

Even older projects who i made some years ago, now have the same problem.

I read also on a post that someone from ST apologizes for this problem who is an older

bug reappeared now.

Hope there is a solution, because it would be very frustrating if i'm constrained

to change an IDE who i love, and if i'm unable to mantain older projects.

Thanks in advance

elvisee

 

This topic has been closed for replies.
STTwo-32
STTwo-32Best answer
ST Technical Moderator

Hello @Mauri 

To have the most probable device marking for each product. Check the product Package then refer to the TN1433 for verification.

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.

12 replies

TDK

If you have a counterfeit programmer, that's probably the issue. Falling back to a ~2 year old STM32CubeIDE version would fix. Buying a legit programmer would also fix.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Mauri
MauriAuthor
Associate

Yes, it's a genuine ST-LiNK V2.  I have 2 of them and both work well with CubeProgrammer and ST-Link Utility, but not with IDE

TDK

You sure? There's no ST product named "ST-LiNK V2". Can you link to what you have or post a picture?

"If you feel a post has answered your question, please click ""Accept as Solution""."
STTwo-32
ST Technical Moderator

Hello @Mauri 

Are you sure that you are using a genuine product. Such a problem can happend if you are using a clone one as mentionned here.

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.
Mauri
MauriAuthor
Associate

Yes, i think so. Please see attached the screen of ST-Link Utility and Cobe Programmer.

Is there a sign of non genuine product?

Yhank You.

 

AScha.3
Super User

>Is there a sign of non genuine product?

Yes, because IDE refuses to work with this (wrong cpu inside) st-link.

ST-link utilty (old...) + CubeProgrammer not checking (until now) original or not, so they still work.

+

The st-link V2 "sticks" work ok also with IDE, if there is a STM32F103 inside;

i know, because i have some of these !

But also some with a CK32F103 , here IDE tell you the story about wrong product... 

So buy a new st-link V3 , or if want cheap, a st-link V2 "fake" (but verify, it has genuine stm32f103cb inside! )

If you feel a post has answered your question, please click on " Best Answer ".
Pavel A.

If nothing else helps, get a J-Link or ST-Link v3.

 

Mauri
MauriAuthor
Associate

I apologize, at the end it seems that the device is NOT genuine, even if it looks that.

I attach 2 pictures: one works, and one gives error.

Is the difference the ST LOGO on the bottom?

Thank you very much to all who replayed me

 

STTwo-32
STTwo-32Best answer
ST Technical Moderator

Hello @Mauri 

To have the most probable device marking for each product. Check the product Package then refer to the TN1433 for verification.

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.
TDK

The best way to get a genuine part is via a reputable distributor.

Not to mention you're unlikely to get a genuine part on a counterfeit programmer, regardless of marking, as reputable distributors don't sell knockoff boards.

"If you feel a post has answered your question, please click ""Accept as Solution""."