Unable to debug using OpenOCD under STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-23 7:28 AM
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.
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 9:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-25 11:00 AM
The cfg files are under .../plugins/com.st.stm32cube.ide.mcu.debug.openocd_xxxxxxx/resources/openocd/st_scripts
