Skip to main content
Associate II
January 26, 2025
Question

Cmsis-DAP debugger in STM32CubeIDE

  • January 26, 2025
  • 12 replies
  • 8139 views

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.

12 replies

Pavel A.
Super User
January 26, 2025

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

 

Associate II
January 26, 2025

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.
Super User
January 26, 2025

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
January 26, 2025

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 ""Accept as Solution""."
Associate II
January 26, 2025

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
January 26, 2025

So is there no way to do it then?

AScha.3
Super User
January 26, 2025
Associate II
January 26, 2025

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
January 26, 2025

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 ""Accept as Solution""."
Associate II
January 26, 2025

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
January 26, 2025

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

atleasttwocharacterslong_0-1737921189340.png

 

AScha.3
Super User
January 26, 2025

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""."
Associate II
January 26, 2025

i fixed that part but now i get

atleasttwocharacterslong_0-1737923380385.png

 

Associate II
January 27, 2025

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
January 27, 2025

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 ""Accept as Solution""."
Associate II
January 27, 2025

here, but it doesnt look like a cmsis dap issue

atleasttwocharacterslong_0-1737988027171.png

 

AScha.3
Super User
January 27, 2025

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 ""Accept as Solution""."
Associate II
January 27, 2025

atleasttwocharacterslong_0-1737989002567.png

 

Associate II
January 27, 2025

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

 

Associate II
January 27, 2025

after patching out the AP_NUM

atleasttwocharacterslong_0-1737991629102.png

 

AScha.3
Super User
January 27, 2025

...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 ""Accept as Solution""."