cancel
Showing results for 
Search instead for 
Did you mean: 

I am having debugging issues with STM32CubeIDE. the processor is STM32F030F4Px and I am using a knock off ST-Link V2. It seem that no matter what I configure I get the same error. There also is a check GDB server version error in the IDE window.

DHirs.2
Associate

Open On-Chip Debugger 0.12.0-00017-gb153daa14 (2023-02-03-14:58)

Licensed under GNU GPL v2

Info : Listening on port 6666 for tcl connections

Info : Listening on port 4444 for telnet connections

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

Info : Target voltage: 3.240714

Info : clock speed 4000 kHz

Info : stlink_dap_op_connect(connect)

Info : SWD DPIDR 0x0bb11477

Info : [STM32F030F4Px.cpu] Cortex-M0 r0p0 processor detected

Info : [STM32F030F4Px.cpu] target has 4 breakpoints, 2 watchpoints

Info : starting gdb server for STM32F030F4Px.cpu on 3333

Info : Listening on port 3333 for gdb connections

Info : accepting 'gdb' connection on tcp/3333

Info : device id = 0x10006444

Info : flash size = 32 KiB

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

undefined debug reason 8 - target needs reset

shutdown command invoked

Info : dropped 'gdb' connection

3 REPLIES 3
Billy OWEN
ST Employee

Hi @DHirs.2​ 

The forum moderator had marked your post as needing a little more investigation and direct support. An online support case has been created on your behalf, please stand by for just a moment and you will hear from us.

Regards,

Billy

fatihbasaris
Associate

Unfortunately I have same problem. Is there any news about this problem??

 

Open On-Chip Debugger 0.12.0-00029-gf77e7cb03 (2023-12-15-13:25) [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 V2J45S7 (API v2) VID:PID 0483:3748

Info : Target voltage: 3.231196

Info : clock speed 4000 kHz

Info : stlink_dap_op_connect(connect)

Info : SWD DPIDR 0x0bb11477

Info : [STM32F030F4Px.cpu] Cortex-M0 r0p0 processor detected

Info : [STM32F030F4Px.cpu] target has 4 breakpoints, 2 watchpoints

Info : starting gdb server for STM32F030F4Px.cpu on 3333

Info : Listening on port 3333 for gdb connections

Info : accepting 'gdb' connection on tcp/3333

Info : device id = 0x10006444

Info : flash size = 32 KiB

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

undefined debug reason 8 - target needs reset

shutdown command invoked

Info : dropped 'gdb' connection

ST is not going support boot-leg or counterfeit equipment.

Did it even program this part?

You should check if you can connect use STM32 Cube Programmer independently.

You need VCC, SWDIO, SWCLK, NRST and GND wired to the programmer.

On low pin count devices make sure your code doesn't break debugger connectivity by disabling or reassigning pins.

If you have a BOOT0 pin, pull it HIGH to stop your code running

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..