Skip to main content
Associate II
Jan 26, 2025 9:49 AM UTC
Question

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.

This topic has been closed for replies.

40 replies

Pavel A.
Jan 26, 2025 1:46 PM UTC

Don't hesitate, buy the ST-LINKv3. It is dirt cheap and well supported by the ST tools.

 

Associate II
Jan 26, 2025 2:44 PM UTC

I just want to try debugging and easier programming before buying an stlink for 30$, I know that a daplink is nowhere as good as an OG stlink but I can use it with Arduino ide for rp2040 debugging.

Pavel A.
Jan 26, 2025 11:50 PM UTC

Not $30. 11.5  https://estore.st.com/en/stlink-v3minie-cpn.html

This is chicken and egg situation. You cannot try debugging and enjoy easy programming before you have a decent tool. Just get it (buy, borrow, steal...) now.

 

AScha.3
Super User
Jan 26, 2025 2:42 PM UTC

Hi,

i think, STM dont want the "standard" , open source Cmsis-DAP to be used on the Eclipse - STM - IDE .

Dont ask me why , ask STM.

Or use Keil IDE, ...

AScha3_0-1737901691481.png

see:

https://community.st.com/t5/stm32cubeide-mcus/cannot-debug-with-cmsis-dap-openocd-cubeide-in-win10/td-p/221224

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II
Jan 26, 2025 3:40 PM UTC

here's why I don't wanna use keil: I just want to be familiar with what I started working in:CubeIDE, so that I can just easily start using the st link once I buy it (In maybe like 3-6 months)

Associate II
Jan 26, 2025 6:02 PM UTC

So is there no way to do it then?

AScha.3
Super User
Jan 26, 2025 6:09 PM UTC
Associate II
Jan 26, 2025 6:11 PM UTC

could you please point me to how to configure it? I am pretty used to pnp systems like arduino and the supported boards, also i would like just a clear explanation of how to do it and not a pre made one cause i also wanna use a picoprobe and such

AScha.3
Super User
Jan 26, 2025 6:34 PM UTC

sorry - no, I didnt get it working - but i only tried a little bit. 

To have something, to connect - and it works : buy a cheap nucleo board (with onboard st-link).

https://www.mouser.de/c/embedded-solutions/engineering-tools/embedded-processor-development-kits/development-boards-kits-arm/?q=nucleo

If you take a board like this:

https://www.mouser.de/ProductDetail/STMicroelectronics/NUCLEO-F303RE?qs=ClYTdQWm4hA0O%2FMhBC5%2FXg%3D%3D

 

you can even use the st-link separate , not only for this board.

AScha3_0-1737916444336.png

 

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II
Jan 26, 2025 6:40 PM UTC

thanks for including the video, i will see if i can use the stuff he says(with youtube's auto generated and translated captions)

Associate II
Jan 26, 2025 7:53 PM UTC

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

atleasttwocharacterslong_0-1737921189340.png

 

AScha.3
Super User
Jan 26, 2025 8:28 PM UTC

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 on " Best Answer ".
Associate II
Jan 26, 2025 8:29 PM UTC

i fixed that part but now i get

atleasttwocharacterslong_0-1737923380385.png

 

Associate II
Jan 27, 2025 6:09 AM UTC

Once I do want to buy it does st ha e a list of distributors? Because I would like to have shipping from my country(Poland)

AScha.3
Super User
Jan 27, 2025 2:42 PM UTC

search distrbution  + poland :

https://www.st.com/content/st_com/en/contact-us.html

 

-> future ->

 

AScha3_0-1737991167367.png

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II
Jan 27, 2025 2:27 PM UTC

here, but it doesnt look like a cmsis dap issue

atleasttwocharacterslong_0-1737988027171.png

 

AScha.3
Super User
Jan 27, 2025 2:37 PM UTC

error shows problem with a script - so edit it. line 191 ...

AScha3_0-1737988585660.png

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II
Jan 27, 2025 2:43 PM UTC

atleasttwocharacterslong_0-1737989002567.png

 

Associate II
Jan 27, 2025 3:16 PM UTC

oh, i was viewing openocd files instead of the ide ones

 

Associate II
Jan 27, 2025 3:27 PM UTC

after patching out the AP_NUM

atleasttwocharacterslong_0-1737991629102.png

 

AScha.3
Super User
Jan 27, 2025 3:56 PM UTC

...dont know... i would try instead :

		target create $_CHIPNAME.ap2 mem_ap -dap $_CHIPNAME.dap -ap-num 2
		swo create $_CHIPNAME.swo -dap $_CHIPNAME.dap -ap-num 2 -baseaddr 0xE00E3000
		tpiu create $_CHIPNAME.tpiu -dap $_CHIPNAME.dap -ap-num 2 -baseaddr 0xE00F5000

 

If you feel a post has answered your question, please click on " Best Answer ".