elmot / clion-embedded-arm

OpenOCD + STM32CubeMX support for CLion
https://blog.jetbrains.com/clion/2017/12/clion-for-embedded-development-part-ii
Other
170 stars 29 forks source link

Wrong GDB-executable is executed. #82

Closed Rumchiller closed 6 years ago

Rumchiller commented 6 years ago

Expected Behavior

After starting the debug session, OpenOCD should flash the device and the selected GDB-executable should start up.

Actual Behavior

After starting the debug session, OpenOCD starts flashing the device but the wrong GDB-executable is executed. Maybe it's related to the toolchain-settings. In my case the MinGW toolchain is selected, with modified C/C++ compilers and make, the debugger is MinGW. But inside the OpenOCD-settings the arm-none-eabi GDB-executable is selected.

No problems with Plugin version 1.0.beta2.

Steps to Reproduce the Problem

  1. Set under OpenOCD settings the GDB location to arm-none-eabi.
  2. Set under toolchain settings the debugger to MinGW.
  3. Start debug session.

Specifications

elmot commented 6 years ago

This is expected behaviour. The plugin has it's own debugger location parameter. Most probanly it will be changed in future versions.

Rumchiller commented 6 years ago

Yeah, that's the problem, sorry I didn't clarify that in my issue. The plugin starts the GDB-exeucutable which is defined in the toolchain settings, but as you mentioned, it should start the GDB-executable defined in the OpenOCD settings (this is also written into the workspace.xml file).