Skip to main content
Visitor II
June 23, 2025
Question

Unable to debug using OpenOCD under STM32CubeIDE

  • June 23, 2025
  • 2 replies
  • 409 views

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

Semer CHERNI
ST Employee
June 25, 2025

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.

Pavel A.
Super User
June 25, 2025

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