cancel
Showing results for 
Search instead for 
Did you mean: 

“ST-Link Debugging Issue: Launch Debugging Failed on STM32 Blue Pill”

srinathr
Associate

Hello Everyone,
I am attempting to debug code on the STM32 Blue Pill board. The project compiles successfully, but when I start a debug session, it fails with the message “Launch debugging failed,” along with additional error details shown below. I would appreciate any guidance on resolving this issue.
Note: I am using an ST-Link V2 programmer (A2020 version).
Wiring is done correctly checked multiple time.
I had doubts about the Debugger configurations. AreCapture.PNG there any other settings must be modifiable, or any other ways are

there?

" Error in final launch sequence:

Failed to start GDB server

Failed to start GDB server

Error in initializing ST-LINK device.

Reason: (18) Could not verify ST device! Abort connection."

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello @srinathr and welcome to the ST community,

Unfortunately, BluePill boards most probably contain a conterfeit STM32 product.

You may also using a cloned STLINK..

I suggest you to use a ST board with a genuine STM32 chip on it. 

Example: NUCLEO-F103RB

And we will happy to help you.

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.

View solution in original post

3 REPLIES 3
mƎALLEm
ST Employee

Hello @srinathr and welcome to the ST community,

Unfortunately, BluePill boards most probably contain a conterfeit STM32 product.

You may also using a cloned STLINK..

I suggest you to use a ST board with a genuine STM32 chip on it. 

Example: NUCLEO-F103RB

And we will happy to help you.

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.
Andrew Neil
Super User

Review the many threads here on Blue (and other coloured) Pills.

As @mƎALLEm said, they most likely contain a fake STM32 and, therefore, are not guaranteed to work with genuine ST tools.

Using a fake or clone ST-Link only compounds the issue.

 

https://community.st.com/t5/others-hardware-and-software/stm32programmer-is-not-connecting-with-blue-pill-device/m-p/874331/highlight/true#M33309

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.
Karl Yamashita
Principal

More than likely the ST-LinkV2 can't detect voltage from the Bluepill.  Does the Bluepill LED turn on when you plug in the USB cable?

Show how you made your connections between the debugger and the Bluepill.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source