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

Improve WSL support #122

Closed wschaeffer closed 5 years ago

wschaeffer commented 6 years ago

Host machine is windows but the build happen on ubuntu (WSL). Debugger should use windows path to .elf file. Instead uses WSL path to .elf file.

Expected Behavior

Debugger is running on windows host.

Actual Behavior

Error during pretty printers setup: Error while executing Python code.

Some features and performance optimizations will not be available.

Cannot load symbol file: /mnt/c/Users/ws/Documents/STM32/FLASH/cmake-build-debug/FLASH.elf: No such file or directory.

Steps to Reproduce the Problem

  1. Try to debug program

Specifications

elmot commented 6 years ago

Try to manually set the binary file path in the run configuration.

invertium commented 5 years ago

I'm having the same issue. I tried changing the 'exectuable' path directly over the windows path which didnt change anything. Fixed by the openOCD GDB settings from 'shipped with clion' to 'from toolchain' and changing the debugger in the toolchain setting like I would for MacOS

elmot commented 5 years ago

Duplicate of https://youtrack.jetbrains.com/issue/CPP-15490