[Solved] OpenSTM32 installation issue on Eclipse-Photon
Hello I just want to help people whose also setup a new Workbench as plugin and have trouble with Debugging (under Linux).
I downloaded the current C/CPP eclipse package (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2018-09/R/eclipse-cpp-2018-09-linux-gtk-x86_64.tar.gz) and installed the workbench over the update-site.
I Generated a new Project via (updated) CubeMX and imported this into eclipse.
When I tried to start a Debug session, OpenOCD starts, but i got a Error message from GDB with “unknown Error”
The Unknown error is obviously the missing GDB.
To solve this, check if under “plugins/fr.ac6.mcu.externaltools.arm-none.linux64_1.16.0.201807130628/tools” the folder “compiler”. In my case it was empty, so I removed the “compiler”-Folder and created a symlink to the folder next, which includes the GDB.
in my case :
rmdir compiler
ln -s st-gnu-arm-gcc-7-2017-q4-major_gdb-5_4-2016q3 compiler
After that, the Debugging is working.