I\'m trying to debug an embedded project using remote GDB. My system:
Looking around for the exact same issue, I came across this GitHub project that has a great step-by-step guide on setting up a JLink debugger on CLion. What really helped me out is the script that generates the .gdbinit
in the user home directory.
There is no need to add a file /firmware.elf
command as this is taken care of by CLion when a debug session is launched. On the other hand, a load
command is necessary to flash your target.