Segger - Error while launching command: arm-none-eabi-gdb --version

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Segger - Error while launching command: arm-none-eabi-gdb --version

Jump to solution
6,131 Views
amuresan
Contributor III

I get this error when I'm using Segger

pastedImage_1.png

I selected the segger configuration

arm-none-eabi-gdb  

Why doesn't this work?

0 Kudos
1 Solution
5,489 Views
amuresan
Contributor III

I figured it out:

I had to manually specify the highlighted field

pastedImage_1.png

View solution in original post

0 Kudos
12 Replies
5,490 Views
amuresan
Contributor III

I figured it out:

I had to manually specify the highlighted field

pastedImage_1.png

0 Kudos
5,490 Views
BlackNight
NXP Employee
NXP Employee

Can you share/show your launch configuration settings?

That message usually tells you that it was not able to find binary, see Troubleshooting Tips: Failed Debugging with GDB | MCU on Eclipse 

I hope this helps,

Erich

0 Kudos
5,491 Views
amuresan
Contributor III

No it doesn't help.

KDS is calling the wrong executable: it's not supposed to be calling "arm-none-eabi-gdb" for the SEGGER.

pastedImage_1.png

I set the Segger GDB path

pastedImage_2.png

0 Kudos
5,491 Views
BlackNight
NXP Employee
NXP Employee

you have the launch config wrong:

pastedImage_1.png

You need to specify a project there.

And yes: gdb is the client talking to the SEGGER gdb server, see Command Line Programming and Debugging with GDB | MCU on Eclipse 

I hope this helps,

Erich

0 Kudos
5,491 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Adrain Muresan,

   What's the chip part number you are using now? Do you use the official board or your own designed board?

   At first, I suggest you use the JLINK commander to check whether you can find the ARM core or not?

   If even JLINK commander which in the JLINK driver install path also can't find the ARM core, it means your hardware have problems, you need to check the hardware connections.

  Please test this point at first, and give me the the JLINK commander screen shoot.

With is helps you!

Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
5,491 Views
amuresan
Contributor III

pastedImage_2.png

0 Kudos
5,491 Views
BlackNight
NXP Employee
NXP Employee

If you already have the GDB server running locally (see Command Line Programming and Debugging with GDB | MCU on Eclipse ), then you shall not launch yet another copy, so uncheck this:

pastedImage_190.png

I hope this helps,

Erich

0 Kudos
5,491 Views
amuresan
Contributor III

I did. Still same issue.

pastedImage_1.png

0 Kudos
5,491 Views
BlackNight
NXP Employee
NXP Employee

Do not start the J-Link Server exectuable externally. Let the debugger launch it (unless you know exactly what you are doing).

And do not forget to specify the project name (see other reply).

I hope this helps,

Erich

0 Kudos
5,491 Views
amuresan
Contributor III

I tried switching to MCUXpresso but alas, you guys appear to not want to support SEGGER.

https://community.nxp.com/message/1118972 

0 Kudos
5,492 Views
amuresan
Contributor III

If I don't start it externally and I uncheck that box, how is the server launched?

Also I'm pretty sure I started it correctly.

pastedImage_1.png

0 Kudos
5,492 Views
BlackNight
NXP Employee
NXP Employee

It starts the server locally (as indicated in the checkbox).

0 Kudos