Software developper

已回答

Hi,

I was wondering if it's possible to use the openocd for embedded software within a docker?


I'm using a docker toolchain for building, but would like the openocd to check INSIDE the docker toolchain for it's tool...

Is that possible?

 

Thanks

 

0

Hello!

Currently there is no way to use openocd inside Docker. Feel free to create a feature request in our tracker - https://youtrack.jetbrains.com/issues/CPP.

Meanwhile you can try the following:

  1. Install openocd on the local machine,
  2. In CLion create a "OpenOCD Download & Run" configuration
    • click on the three-dots icon next to the Executable binary field and select the local (important!) binary, which is downloaded automatically in case of the Docker toolchain,
    • in the Debugger field select the bundled GDB,
  3. Create the .gdbinit file in the project root and configure correct path mappings in it,
  4. Enable reading project-specific .gdbinit - https://www.jetbrains.com/help/clion/configuring-debugger-options.html#enable-initfiles-root,
  5. Try to run/debug the "OpenOCD Download & Run" configuration.

I haven't tested that on my side, so can't guarantee anything, but feel free to try.

0

请先登录再写评论。