Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problems debugging whilst using USBDM pluggin(Eclipse has a strong objection to debugging and running code)
Problems debugging whilst using USBDM pluggin [message #1832073] Tue, 08 September 2020 06:23 Go to next message
Refael Cohen is currently offline Refael CohenFriend
Messages: 1
Registered: September 2020
Junior Member
Hello,
I'm a university student using Eclipse CDT for one of my current units. I am using a FRDM-K20D50M board with a sparkfun.com ProtoSheild.
Whenever I attempt to debug I get the following error:
Error with command: gdb --version
Cannot run program "gdb": Launching failed

And whenever I run I run I get this error:
Error starting process.
Cannot run program "C:\Users\[my name]\Documents\workspace\Blinky\Debug\program.elf": Launching failed

I've had multiple members of my teaching staff try to help to no avail.
Here's a list of solutions that I've already tried:
-Check the serial ports
-Reinstall
-Uninstall
-Install in a different order
-Change the source files for gdb (it just causes problems with .gdbinit, and I'm unable to find either)
-Running as USBDM
-Cleaning the program

Any further ideas would be awesome, I'm really in a bind. Thanks in advance
Re: Problems debugging whilst using USBDM pluggin [message #1832102 is a reply to message #1832073] Wed, 09 September 2020 05:42 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You appear to be running under Windows.
I have no way of verifying this but the first message
"Cannot run program "gdb": Launching failed"
is saying that gdb couldn't be run.

You either don't have it installed or it isn't in the path when running Eclipse.

Windows can't run ELF files which explains what is happening when you try to run it.

You want to run it on the FRDM-K20D50M board which is an ARM processor.
It's unlikely your Windows machine is also an ARM processor.
In any case, Windows expects executables to be in PE format.





Previous Topic:CDT indexing problems: out of memory, waiting for exclusive lock and type hierarchy
Next Topic:Indexer Problem with Arduino files
Goto Forum:
  


Current Time: Sun Oct 06 19:00:39 GMT 2024

Powered by FUDForum. Page generated in 0.04233 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top