Error with command: gdb --version Cannot run program "gdb": Launching failed on KSD2.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error with command: gdb --version Cannot run program "gdb": Launching failed on KSD2.0

8,977 次查看
yarannan
Contributor III

Hi,

I am running a hello world demo application on KDS 2.0. I can the program as debugging mode but whenever i want to run whole program. It gives me this error:

     "Error with command: gdb --version

     Cannot run program "gdb": Launching failed"

I am working with TWR-K60D100M.  If anyone here has the similar problem before? Thank you.

 

Yaran

标签 (1)
0 项奖励
回复
6 回复数

3,566 次查看
yarannan
Contributor III

Hey guys,

Thanks for all of your help. I solved it. I am being silly. When I run a program on an actual hardware, i should flash it to the file instead directly running as a c++ application.

However, thanks all the time.

Yaran

0 项奖励
回复

3,566 次查看
BlackNight
NXP Employee
NXP Employee

Yes, you cannot run it on the host :-)

If you would like to emulate a 'run' on the target, have a look here:

http://mcuoneclipse.com/2014/10/04/emulating-eclipse-run-with-debug-configuration/

Erich

3,566 次查看
BlackNight
NXP Employee
NXP Employee

Could it be that your firewall or virus blocked/removed the gdb executable? The message indicates that it cannot find/launch the program.

Can you check if you have the following files present:

C:\Freescale\KDS_2.0.0\toolchain\bin\arm-none-eabi-gdb.exe

C:\Freescale\KDS_2.0.0\toolchain\arm-none-eabi\bin\gdb.exe

?

Erich

0 项奖励
回复

3,566 次查看
yarannan
Contributor III

Yes, the file is there.

0 项奖励
回复

3,566 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Yaran,

Sorry i do not clearly know your meaning about "i want to run whole program" .

Could you tell me how to repeat your error step by step ,i will test on my side . And tell me which demo application ? KSDK demo ?

BR

Alice

0 项奖励
回复

3,566 次查看
yarannan
Contributor III

As you know, there is two mode (two buttons on the main screen). One is 'Debug As' and the other one is 'Run as'. I am working with a TWR-K60D100M- an actual hardware (not sure if that is the reason).

'Debug as' always succeed, but whenever i click "run"/"run as", it throw me above error. I hope it helps you.

0 项奖励
回复