Skip to main content
Visitor II
February 29, 2024
Solved

Start debugging STM32 VS Code Extension

  • February 29, 2024
  • 2 replies
  • 4646 views

I was using the SystemWorkbench for years and everything OK.  Recently changed to STM32CubeIDE and also able to build and debug within hours with released ST project "STM32Cube_FW_F4_V1.28.0".

Have tried to use the new "STM32 VS Code Extension" in VSCode as it is getting popular.

1. Followed the instructions to install "STM32CubeCLT", note : I installed in different location "C:\Tools\STM\STM32CubeCLT"

2. Modified the "WINDOWS_ST_CLT_PATH" and "TOOLCHAIN_DIRECTORIES" in gcc-arm-none-eabi.cmake, and the project is built successful - OK.

3. Try to "Debug" the project but it shows error message :

 

DilbertK_0-1709248326176.png

Questions :

For STM32CubeIDE, it is using OpenOCD.  

For VSCode, How to configured and setup to use the Debug Tools under STM32CubeCLT ?

Thanks

    This topic has been closed for replies.
    Best answer by Dilbert K

    Issue resolved by re-installed both 

    - STM32CubeIDE and STM32CubeCLR to default location "C:\ST"

    Looks like both tools are inter-connected to each other in un-documented manner.

    2 replies

    Dilbert KAuthor
    Visitor II
    March 1, 2024

    DilbertK_0-1709253140542.png

    Anyone knows how to update this for the Tools required for debugger ??

    Dilbert KAuthorAnswer
    Visitor II
    March 1, 2024

    Issue resolved by re-installed both 

    - STM32CubeIDE and STM32CubeCLR to default location "C:\ST"

    Looks like both tools are inter-connected to each other in un-documented manner.