JLink gdb server launching fails from KDS but not from command line

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

JLink gdb server launching fails from KDS but not from command line

ソリューションへジャンプ
3,338件の閲覧回数
mike1974
Contributor III

Hello everyone,


I get this error when trying to launch my debugger from the flash configurations window...

 

Error while launching command C:\Program Files\SEGGER\JLink_V496b\JLinkGDBServerCL.exe -if swd -device MK22FN1M0xxx12 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -s

Cannot run program "C:\Program Files\SEGGER\JLink_V496b\JLinkGDBServerCL.exe": Launching failed

 

However if I go to the command prompt and paste the same command, it seems to be ok...

...

Connecting to J-Link...

J-Link is connected.

Firmware: J-Link V9 compiled Feb 20 2015 09:20:19

Hardware: V9.20

S/N: 59200469

Feature(s): GDB

Checking target voltage...

Target voltage: 3.37 V

Listening on TCP/IP port 2331

Connecting to target...Connected to target

Waiting for GDB connection...

 

Anyone know what the problem is?  Thank you...

ラベル(1)
0 件の賞賛
返信
1 解決策
2,499件の閲覧回数
BlackNight
NXP Employee
NXP Employee

JLinkGDBServer.exe is a Win32 executable, and therefore you need to launch it correctly (as a windows binary). You cannot launch binaries/executables from normal eclipse views.

If you want to launch binaries, have a look at things like WickedShell (5 Best Eclipse Plugins: #5 (WickedShell) | MCU on Eclipse) or simply launch it as 'external tool'. I use that approach e.g. to launch the explorer.exe, see http://mcuoneclipse.com/2014/11/24/adding-show-in-windows-explorer-to-eclipse/

I hope this helps,

Erich

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
2,500件の閲覧回数
BlackNight
NXP Employee
NXP Employee

JLinkGDBServer.exe is a Win32 executable, and therefore you need to launch it correctly (as a windows binary). You cannot launch binaries/executables from normal eclipse views.

If you want to launch binaries, have a look at things like WickedShell (5 Best Eclipse Plugins: #5 (WickedShell) | MCU on Eclipse) or simply launch it as 'external tool'. I use that approach e.g. to launch the explorer.exe, see http://mcuoneclipse.com/2014/11/24/adding-show-in-windows-explorer-to-eclipse/

I hope this helps,

Erich

0 件の賞賛
返信