I'm trying to debug a project on Kinetis Design Studio with GDB PEMicro Interface Debugging but I get this error: 'Launching myProject' has encountered a problem. Could not determine GDB version after sending: arm-none-eabi-gdb --version, response:
I formatted my computer there is a few days. And a had other computer to the same settings and it worked well.
My settings:
Eclipse Preferences -> C/C++ -> Build -> Global Tools Paths
Eclipse Preferences -> C/C++ -> Build -> Workspace Tools Paths
Project properties -> C/C++ Build -> Tools Paths
Project properties -> C/C++ Build -> Settings -> Toolchains
Project properties -> C/C++ Build -> Environment -> PATH
Debug launch configuration -> Main tab
Debug launch configuration -> Debugger tab
set mem inaccessible-by-default off
set tcp auto-retry on
set tcp connect-timeout 240
How can I fix it?
I had a help of a coworker. We tried to run the gdb on terminal (./arm-none-eabi-gdb
) in its directory /opt/Freescale/KDS_v3/toolchain/bin
and it returns:
./arm-none-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
So I solved it with this command on terminal:
sudo apt-get install libncurses5:i386
Probably this error occurs due the architecture of my machines that is x64 and the architecture of the arm-none-eabi-gdb is x86. And some times some dependencies of linux can to change this libs. So in some machines it can to work but in other not.
I am on Ubuntu 16.04 x64.
On my system libncruses5
is already installed.
Eclipse (KDS) + Segger.
When trying to bring up the debugger, error Could not determine GDB version after sending: arm-none-eabi-gdb --version, response:
is shown.
sudo apt-get install libncurses5:i386
The 32-bit version of libncurses5
is needed.
Once it is in place, problem is resolved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With