Wrong OpenOCD installation

已回答

Just downloaded CLion 2019.2 and am trying to configure an STM32CubeMX project. CLion asks me to specify the path to OpenOCD. I enter the path for the executable located in the ST distribution, and get the following message:

   Wrong OpenOCD installation
   Boards configs folder (C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.externaltools.openocd.win32_1.23.0.201904120827\tools\openocd\scripts\board) is not found

I've successfully debugged this application with System Workbench. Why doesn't CLion like it?

0

Hello!

As far as we know, OpenOCD is not included in the ST distribution. You can use GDB servers from the ST distribution (ST-Link or J-Link) and the Embedded GDB Server run/debug configuration.

If you would like to use the OpenOCD Download & Run configuration, you need to get OpenOCD: http://openocd.org/getting-openocd/.

 

0
Thanks Anna,
 
From the online documentation for CLion 2019.2, in the STM32CubeMX Projects section:
 
"STM32CubeMX support in CLion is a part of the bundled OpenOCD + STM32CubeMX plugin. For this reason, project settings and certain steps of the project creation procedure are coupled with OpenOCD..."
 
 
This would certainly seem to imply that OpenOCD is bundled with CLion. That not being the case, OpenOCD is bundled with and employed by ST's System Workbench (SW4STM32), which I have installed, and it's this version of the OpenOCD executable to which I pointed CLion. I don't know why CLion doesn't like that one, but OK. For the sake of anyone else who has the same issue, I downloaded MSYS2 (MSYS64) and installed it per the instructions, then installed the binary OpenOCD package, and configured the OpenOCD Location option in CLion's Embedded Development settings page to point to this executable, and that works. JetBrains may wish to improve the documentation for OpenOCD integration to make it clear that it isn't included with CLion.
 
- Servant
0

Hi Servant!

The information in the article you're referring to looks as follows:

"OpenOCD + STM32CubeMX" which is formatted as a link is the name of the bundled plugin. The plugin is bundled, not OpenOCD. Sorry for misleading.

0

请先登录再写评论。