Unable to flash firmware using openOCD and Clion on windows

Answered

I am trying to upload a firmware on a stm32u5 board using CLion.

I have tried to use several versions of openOCD , but they dont seem to work. I have found pepole having similar issues here:

Problems using latest standard openocd build with ... - STMicroelectronics Community

however, when trying to add the openocd.exe from my installation of stm32CubeIde I get the following error:

Wrong OpenOCD installation Boards configs folder (C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.3.200.202404091248\tools\scripts\board) is not found

the openocd location I am trying to use is the following:

C:\ST\STM32CubeIDE_1.16.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.openocd.win32_2.3.200.202404091248\tools\bin\openocd.exe

is there any way to fix this? I have already tried to create the folders scripts/boards and move the .cfg files of the boards in the boards folder, but I still get the same error.

 

0
1 comment

The issue was discussed with the user via the support request (https://intellij-support.jetbrains.com/hc/en-us/requests/new). Posting here just for the record:

The workaround is to use the "Embedded GDB Server" configuration (https://www.jetbrains.com/help/clion/embedded-gdb-server.html) instead of the "OpenOCD Download & Run" configuration (https://www.jetbrains.com/help/clion/openocd-support.html).

0

Please sign in to leave a comment.