cancel
Showing results for 
Search instead for 
Did you mean: 

Blackmagic debug probe in STM32CubeIDE

atleasttwocharacterslong
Associate III

Split from Cmsis-DAP debugger in STM32CubeIDE as this is a new question about a different probe.


Hi guys, sorry i haven't responded, i do not have the daplink anymore, i have it to a friend when i got a diy Blackmagic debug probe, and i have another problem:it works in gdb-multiarch but not in the ide, here is my configuration and gdb.txt file

atleasttwocharacterslong_0-1745939277242.png

init:

set logging on
monitor swdp_scan
attach 1

 gdb.txt(log):

=cmd-param-changed,param="logging enabled",value="on"
23^done
(gdb) 
&"monitor swdp_scan\n"
@"Target voltage: 1.57V\n"
@"Available Targets:\n"
@"No. Att Driver\n"
@" 1      STM32F1 medium density M3\n"
24^done
(gdb) 
&"attach 1\n"
~"Attaching to program: /home/kacper/STM32CubeIDE/workspace_1.17.2/bpl6_boot1_test/Debug/bpl6_boot1_test.elf, Remote target\n"
=thread-group-started,id="i1",pid="1"
=thread-created,id="1",group-id="i1"
&"./gdb/thread.c:87: internal-error: inferior_thread: Assertion `current_thread_ != nullptr' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable."
&"\n"
&"----- Backtrace -----\n"
&"Backtrace unavailable\n"
&"---------------------\n"
~"./gdb/thread.c:87: internal-error: inferior_thread: Assertion `current_thread_ != nullptr' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable."
~"\nQuit this debugging session? "
~"(y or n) [answered Y; input not from terminal]\n"
&"\nThis is a bug, please report it."
&"  For instructions, see:\n"
&"<https://www.gnu.org/software/gdb/bugs/>.\n\n"
~"./gdb/thread.c:87: internal-error: inferior_thread: Assertion `current_thread_ != nullptr' failed.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable."
~"\nCreate a core file of GDB? "
~"(y or n) [answered Y; input not from terminal]\n"

yes, i have confirmed my ACM port number and it is correct, also i am using the wayland startup script if it matters

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

I don't think there's an expectation that an off-brand debugger should work flawlessly with STM32CubeIDE. Certainly any issues you encounter should be brought up with the maintainers of that project.

Official ST debuggers are cheap, consider getting one.

STLINK-V3MINIE - STLINK-V3 compact in-circuit debugger and programmer for STM32 - STMicroelectronics

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

View solution in original post

2 REPLIES 2
TDK
Guru

I don't think there's an expectation that an off-brand debugger should work flawlessly with STM32CubeIDE. Certainly any issues you encounter should be brought up with the maintainers of that project.

Official ST debuggers are cheap, consider getting one.

STLINK-V3MINIE - STLINK-V3 compact in-circuit debugger and programmer for STM32 - STMicroelectronics

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

@atleasttwocharacterslong 

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.

Blackmagic is not a tool supported by STMicroelectronics, the use of an official tool, like a genuine ST-LINK is recommended, which should be purchased from known and trusted distributors, as mentioned by @TDK.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Thank you for your understanding.

Regards
/Peter

In order 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.