cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue Debugging Stm32 Blue Pill

unsigneddev
Associate

Kindly help me with this. Im using a STM32 blue PILL - stm32F103C8
Open On-Chip Debugger 0.12.0+dev-00608-gd8ed48fef (2025-02-06-11:17) [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 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

Info : STLINK V2J46S7 (API v2) VID:PID 0483:3748

Info : Target voltage: 3.215873

Info : clock speed 4000 kHz

Info : stlink_dap_op_connect(connect)

Info : SWD DPIDR 0x1ba01477

Info : [STM32F103C8Tx.cpu] Cortex-M3 r1p1 processor detected

Info : [STM32F103C8Tx.cpu] target has 6 breakpoints, 4 watchpoints

Info : [STM32F103C8Tx.cpu] Examination succeed

Info : starting gdb server for STM32F103C8Tx.cpu on 3333

Info : Listening on port 3333 for gdb connections

Info : accepting 'gdb' connection on tcp/3333

Info : device id = 0x20036410

Info : flash size = 64 KiB

Warn : GDB connection 1 on target STM32F103C8Tx.cpu not halted

undefined debug reason 8 (UNDEFINED) - target needs reset

Info : accepting 'gdb' connection on tcp/3333

Warn : GDB connection 2 on target STM32F103C8Tx.cpu not halted

undefined debug reason 8 (UNDEFINED) - target needs reset

[STM32F103C8Tx.cpu] halted due to breakpoint, current mode: Thread

xPSR: 0x01000000 pc: 0x08000384 msp: 0x20005000

[STM32F103C8Tx.cpu] halted due to breakpoint, current mode: Thread

xPSR: 0x01000000 pc: 0x08000384 msp: 0x20005000

Info : dropped 'gdb' connection

[STM32F103C8Tx.cpu] halted due to debug-request, current mode: Thread

xPSR: 0x21000000 pc: 0x080004c8 msp: 0x20004fe0

shutdown command invoked

Info : dropped 'gdb' connection
Im a beginner, Kindly pardon my lack of understanding. Please suggest

2 REPLIES 2
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results - in particular, what other tools, etc, are you using?

 

Note that Blue Pill is not an ST Product, and most likely contains a fake/clone microcontroller.

Therefore, you most likely will face problems when trying to use it with ST tools - that's a given !

eg, see this; and a forum search for "Blue Pill" will bring up many more such examples.

 

For a genuine, supported device try a Nucleo-F103RB - note that this comes complete with a genuine ST-Link.

 

PS:

Here is a diagnostic utility to identify what is actually fitted on your board.

#BluePill #FakeSTM32F103

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.
Maxime_MARCHETTO1
Community manager

Hello @unsigneddev ,  

Thank you for your question. We are unable to replicate the issue and based on the information provided, it can be due to a non-genuine ST product.  

We recommend contacting your seller or the third party where you purchased the product for further clarification. For assurance of buying authentic ST products, please purchase exclusively through our official distributors listed here: ST Official Distributors

For any inquiry about product authenticity please contact corporate.security@st.com

Best regards, 
Maxime