cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to debug using OpenOCD under STM32CubeIDE

EmbStmDev
Associate

I am attempting to debug code on a Necleo-U385RG-Q board using STM32CubeIDE V1.18.1 under Windows 11. I beleive that under \plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.4.100.202501161620\tools there should be a scripts directory that contains cfg files for ST-Link V3 and my board. However, there is no scripts directory anywhere in the installation. Nor is there for my STM32Cube Programmer installation. When setting up the debug configurations I am able to select ST-Link GDB Server as a debug probe. This does get the board's serial number. However, because of the missing files I expect to see in the scripts directory, I get nothing when selecting ST-Link OpenOCD. I believe I should put the path to the cfg files under OpenOCD options.

2 REPLIES 2
Semer CHERNI
ST Employee

Hello @EmbStmDev 

First let me thank you for posting.

I was not able to see the same behavior as I am able to debug the code using ST-Link GDB and OpenOCD.

Could you share the log file of the debug?

KR,
Semer.

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.

Pavel A.
Super User

The cfg files are under .../plugins/com.st.stm32cube.ide.mcu.debug.openocd_xxxxxxx/resources/openocd/st_scripts