3.2
J-Link Commander (Command line tool)
J-Link Commander (JLink.exe) is a tool that can be used for verifying proper instal-
lation of the USB driver and to verify the connection to the target CPU, as well as for
simple analysis of the target system. It permits some simple commands, such as
memory dump, halt, step, go etc. to verify the target connection.
3.2.1
Command line options
J-Link Commander can be started with different command line options for test and
automation purposes. In the following, the command line options which are available
for J-Link Commander are explained.
-CommandFile
Selects a command file and starts J-Link Commander in batch mode. The batch mode
of J-Link Commander is similar to the execution of a batch file. The command file is
parsed line by line and one command is executed at a time.
Syntax
-CommanderScript <CommandFilePath>
Example
See Using command files on page 64
-Device
Pre-selects the device J-Link Commander shall connect to. For some devices, J-Link
already needs to know the device at the time of connecting, since special handling is
required for some of them. For a list of all supported device names, please refer to
http://www.segger.com/jlink_supported_devices.html.
Syntax
-Device <DeviceName>
Example
JLink.exe -Device STM32F103ZE
-If
Selects the target interface J-Link shall use to connect to the target. By default, J-
Link Commander first tries to connect to the target using the target interface which is
currently selected in the J-Link firmware. If connecting fails, J-Link Commander goes
through all target interfaces supported by the connected J-Link and tries to connect
to the device.
J-Link / J-Trace (UM08001)
© 2004-2013 SEGGER Microcontroller GmbH & Co. KG
63
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers