Difference between revisions of "Setting up Ethernet interface"

From SEGGER Wiki
Jump to: navigation, search
(Setting up with a router (DHCP))
Line 24: Line 24:
 
* Set the IP address to an available address in your local network e.g. 192.168.abc.xyz where ''abc'' and ''xyz'' are free to choose from 0 up to 255 and the subnet mask to 255.255.255.0.
 
* Set the IP address to an available address in your local network e.g. 192.168.abc.xyz where ''abc'' and ''xyz'' are free to choose from 0 up to 255 and the subnet mask to 255.255.255.0.
 
[[File:1JLink_Configuration_Before.PNG|thumb|Setting manual IP address in Configurator|none]]
 
[[File:1JLink_Configuration_Before.PNG|thumb|Setting manual IP address in Configurator|none]]
  +
  +
* Now go to your network adapter folder and right click the Ethernet adapter that is to be used for this setup and open the properties.
  +
[[File:2Network_Adapters.png|thumb|Open network adapter properties|none]]
  +
  +
* In the properties menu open "Internet Protocol Version 4(TCP/IPv4)" settings.
  +
[[File:3Network_Adapter_Properties.png|thumb|Open TCP/IPv4 settings|none]]
  +
  +
* Select "Use the following IP address:" and set the IP address to the same subnet as the J-Link/J-Trace before.
  +
* In this example to 192.168.abc.xyz where ''xyz'' must be another value than the one chosen for the debug probe and ''abc'' must be chosen the same as before, subnet mask is again 255.255.255.0.
  +
[[File:4Network_Adapter_IPSettings.png|thumb|Set manual IP address for host Ethernet adapter|none]]
  +
  +
* After everything is set up correct the debug probe should show up in the J-Link Configurator connected via USB and TCP/IP.
  +
[[File:5JLink_Configuration_After.PNG|thumb|Configurator listing after correct setup|none]]
  +
  +
* To test the IP connection J-Link Commander from the J-Link software install folder can be used, to connect simply type: IP <Assigned IP address> and press enter.
  +
[[File:6Commander_Connect_over_IP.png|thumb|Successful connection over IP|none]]
  +
  +
== Setting up to use DHCP ==
  +
  +
When your J-Link is configured to use a static IP address but you want to switch back to use DHCP, the J-Link needs to be re-configured.
  +
This can be done using either the J-Link Commander or the J-Link Configurator.
  +
  +
'''J-Link Configurator'''
  +
* Connect the J-Link/J-Trace debug probe to your host PC via USB.
  +
* Open the J-Link Configurator (JLinkConfig.exe) from the J-Link software installation folder.
  +
* Set the IP Configuration to "Automatic (DHCP)"
  +
  +
'''J-Link Commander'''
  +
* Connect the J-Link/J-Trace debug probe to your host PC via USB.
  +
* Open the J-Link Commander (JLink.exe) from the J-Link software installation folder.
  +
* Enter the command "ipaddr dhcp"
  +
   
 
* Now go to your network adapter folder and right click the Ethernet adapter that is to be used for this setup and open the properties.
 
* Now go to your network adapter folder and right click the Ethernet adapter that is to be used for this setup and open the properties.

Revision as of 13:04, 21 March 2019

Our most advanced debug probes J-Link PRO and J-Trace PRO come with a gigabit Ethernet interface. It can be used for remote access to the debug probe and in the case of the J-Trace also for tracing. How to enable the Ethernet functionality is described in the following article. As a prerequisite the J-Link software and documentation package is required which can be downloaded here.

Setting up with a router (DHCP)

This article assumes that your debug probe is in delivery condition which means it is configured to use DHCP. When using a router with DHCP mode enabled setting up the Ethernet connection is rather simple.

  • Connect both the host PC and the J-Link/J-Trace debug probe via Ethernet to the router.
  • Now simply wait until the router assigns a IP to both devices.
  • Check the IP status of the debug probe using J-Link Commander or J-Link Configurator.
Assigned IP address shown in Commander

To connect to the debug probe over IP type: IP <Assigned IP address>

Setting up direct connection without DHCP to the host PC's Ethernet interface

When no router with DHCP is available you can still configure your debug probe and host PC to connect to each other via Ethernet. To do that additional steps are required. The following example guide will show a step by step configuration on a Windows system. For Linux and or Mac the principle stays the same but other steps might be required. Other ways of setting the debug probe IP address manually can be found in the J-Link user manual (UM08001_JLink).

  • Connect the J-Link/J-Trace debug probe to your host PC via USB.
  • Open the J-Link Configurator (JLinkConfig.exe) from the J-Link software installation folder.
  • Set the IP address to an available address in your local network e.g. 192.168.abc.xyz where abc and xyz are free to choose from 0 up to 255 and the subnet mask to 255.255.255.0.
Setting manual IP address in Configurator
  • Now go to your network adapter folder and right click the Ethernet adapter that is to be used for this setup and open the properties.
Open network adapter properties
  • In the properties menu open "Internet Protocol Version 4(TCP/IPv4)" settings.
Open TCP/IPv4 settings
  • Select "Use the following IP address:" and set the IP address to the same subnet as the J-Link/J-Trace before.
  • In this example to 192.168.abc.xyz where xyz must be another value than the one chosen for the debug probe and abc must be chosen the same as before, subnet mask is again 255.255.255.0.
Set manual IP address for host Ethernet adapter
  • After everything is set up correct the debug probe should show up in the J-Link Configurator connected via USB and TCP/IP.
Configurator listing after correct setup
  • To test the IP connection J-Link Commander from the J-Link software install folder can be used, to connect simply type: IP <Assigned IP address> and press enter.
Successful connection over IP

Setting up to use DHCP

When your J-Link is configured to use a static IP address but you want to switch back to use DHCP, the J-Link needs to be re-configured. This can be done using either the J-Link Commander or the J-Link Configurator.

J-Link Configurator

  • Connect the J-Link/J-Trace debug probe to your host PC via USB.
  • Open the J-Link Configurator (JLinkConfig.exe) from the J-Link software installation folder.
  • Set the IP Configuration to "Automatic (DHCP)"

J-Link Commander

  • Connect the J-Link/J-Trace debug probe to your host PC via USB.
  • Open the J-Link Commander (JLink.exe) from the J-Link software installation folder.
  • Enter the command "ipaddr dhcp"


  • Now go to your network adapter folder and right click the Ethernet adapter that is to be used for this setup and open the properties.
Open network adapter properties
  • In the properties menu open "Internet Protocol Version 4(TCP/IPv4)" settings.
Open TCP/IPv4 settings
  • Select "Use the following IP address:" and set the IP address to the same subnet as the J-Link/J-Trace before.
  • In this example to 192.168.abc.xyz where xyz must be another value than the one chosen for the debug probe and abc must be chosen the same as before, subnet mask is again 255.255.255.0.
Set manual IP address for host Ethernet adapter
  • After everything is set up correct the debug probe should show up in the J-Link Configurator connected via USB and TCP/IP.
Configurator listing after correct setup
  • To test the IP connection J-Link Commander from the J-Link software install folder can be used, to connect simply type: IP <Assigned IP address> and press enter.
Successful connection over IP