Debugging the Lora-STM32WL-devkit: Open On-Chip Debugger failed

Started by Volker, March 19, 2025, 01:23:20 PM

Previous topic - Next topic

Volker

Two Remarks:

1. Launching the debugger fails with a probability of about 50%.

2. OpenOCD.exe which came with STM32CubeIDE 1.10.0 does not work:

C:\ST\STM32CubeIDE_1.10.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.2.100.202206011703\tools\bin\openocd.exe -f interface/cmsis-dap.cfg -c "cmsis-dap vid_pid 0x15ba 0x0044" -c "transport select swd" -c "adapter speed 2000" -f "target/stm32wlx.cfg"
Open On-Chip Debugger 0.11.0+dev-00449-g53fa0f7 (2022-06-09-09:42) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
cmsis-dap <cmd>
  cmsis-dap cmd
  cmsis-dap info

Volker

I tried using the openOCD.exe which comes with STM32CubeIDE 1.10.0. This version just issues a message and does nothing:

 C:\ST\STM32CubeIDE_1.10.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.2.100.202206011703\tools\bin\openocd.exe -f interface/cmsis-dap.cfg -c "cmsis-dap vid_pid 0x15ba 0x0044" -c "transport select swd" -c "adapter speed 2000" -f "target/stm32wlx.cfg"
Open On-Chip Debugger 0.11.0+dev-00449-g53fa0f7 (2022-06-09-09:42) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
cmsis-dap <cmd>
  cmsis-dap cmd
  cmsis-dap info

LubOlimex

I believe the support for STM32wlx chips was added in OpenOCD 1.11.0, so it is expected to have problems with OpenOCD 1.10.0.
Technical support and documentation manager at Olimex