MCUXpresso IDE Gdb Client Address Change

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

MCUXpresso IDE Gdb Client Address Change

Jump to solution
2,674 Views
blogcin
Contributor I


MCUXpresso's J-Link Remote debugging is run JLinkGDBServer on client environment to connect remote server.

[JLink]                 [Server]                                          [Client]
JLink <-> (JLinkRemoteServer) <-> (JLinkGDBServer) <-> Gdb

so I think In poor environment, it is too heavy.

I change "org.eclipse.cdt.debug.gdbjtag.core.ipAddress " value through text editor in "Projectname.launch" file. then I don't need run JLinkGDBServer in client environment.

Is there any method to change gdb client address in MCUXpresso? (not port)

MCUXpresso menus are available only for change port.
(Debug Configurations... -> JLink Debugger -> GDB Client Settings)

 

 

1 Solution
2,625 Views
ErichStyger
Specialist I

Hi @blogcin ,

I believe you want this:

ErichS_0-1606200339547.png

 

right? Instead launching the server locally, you want to connect to a remote server, correct?

I get the above with the MCU Eclipse CDT (Eclipse Embedded CDT (eclipse-embed-cdt.github.io), formerly GNU ARM Eclipse) plugins installed in MCUXpresso.

 

I hope this helps,

Erich

View solution in original post

3 Replies
2,664 Views
ErichStyger
Specialist I

Hi @blogcin 

You can edit the IP Address of the J-Link server in the launch config, see https://mcuoneclipse.com/2019/03/02/remote-debugging-with-usb-based-jtag-swd-debug-probes/

ErichS_0-1606109394474.png

 

In case you want to use IP tunneling mode, then https://mcuoneclipse.com/2017/02/05/remote-board-debugging-j-link-remote-server-with-eclipse/ is what you are looking for.

And if your remote debugging probe is USB based, then you can use this: https://mcuoneclipse.com/2019/03/02/remote-debugging-with-usb-based-jtag-swd-debug-probes/

 

I hope this helps,

Erich

0 Kudos
Reply
2,637 Views
blogcin
Contributor I

Thanks for your reply. @ErichStyger 

I already set J-Link Remote address in my MCUXpresso. (v11.2.1)
but when do debug, gdb trying to connect gdbserver from localhost, not remote address.
That is a problem what trying to connect gdb server from localhost when isn't turn on "start server" in debug option.

when I change "org.eclipse.cdt.debug.gdbjtag.core.ipAddress " in ".launch" file, gdb connect gdbserver from remote address, not localhost.

It can be nice if allow to enter gdb server address in the debug option or the gdb server's address to be synchronized to the J-Link remote address.

 

 

2,626 Views
ErichStyger
Specialist I

Hi @blogcin ,

I believe you want this:

ErichS_0-1606200339547.png

 

right? Instead launching the server locally, you want to connect to a remote server, correct?

I get the above with the MCU Eclipse CDT (Eclipse Embedded CDT (eclipse-embed-cdt.github.io), formerly GNU ARM Eclipse) plugins installed in MCUXpresso.

 

I hope this helps,

Erich