cancel
Showing results for 
Search instead for 
Did you mean: 

Cmsis-DAP debugger in STM32CubeIDE

Hello, i have a DapLink debugger and wanted to use it with stm32, i also am pretty new to stm32, so don't be mad when i mess up some terms. I don't want to buy an STLink yet since i wanna see if i am going to like stm32 debugging/programming. Some context:MCU:STM32H723ZGT6, debugger: DapLink Mini, OS:Ubuntu desktop 24.10.Also, yes i know that this board is overkill but i thought, go big or go home, if i am gonna try stm32 i better make it count.

34 REPLIES 34

so i set up the debugger like he did and got an error

atleasttwocharacterslong_0-1737921189340.png

 

I think, you have to give the path to arm--gdb - or install it .

package installer on Ubuntu...

if not there ->

https://askubuntu.com/questions/1031103/how-can-i-install-gdb-arm-none-eabi-on-ubuntu-18-04-bionic-beaver

 

I installed gdb-multiarch , + made symlink for gdb-arm-none-eabi -> gdb-multiarch

(otherwise i could not debug at all, because the stm-ide want some 12 y old libncurses.so.5.3 or so... i couldnt find.)

I am on new MXlinux.

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

i fixed that part but now i get

atleasttwocharacterslong_0-1737923380385.png

 

atleasttwocharacterslong_0-1737923469033.png

 

only root can.

->

> sudo -i

> apt install gdb-multiarch

> cd /opt/st/stm32cubeide_1.17.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.linux64_1.1.0.202410170702/tools/bin # or wherever you installation is

> mv arm-none-eabi-gdb arm-none-eabi-gdb.bak

> ln -s /usr/bin/gdb-multiarch arm-none-eabi-gdb

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

same issue

atleasttwocharacterslong_0-1737924945199.png

atleasttwocharacterslong_1-1737925015483.png

 

 

openocd works just fine in terminal so it is definitely installed

 

turns out that in debug options or whatever it was called(it's pretty late now) the openocd command wasnt supposed to be in ""

atleasttwocharacterslong_0-1737926362101.png

 

hey - so it tries to connect now - right ?

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