Difference between revisions of "J-Link Commander"
(Blanked the page) |
|||
Line 1: | Line 1: | ||
+ | J-Link Commander (JLink.exe) is a free command line based utility that can be used for verifying proper functionality of J-Link as well as for simple analysis of the target system with J-Link. It supports some simple commands, such as memory dump, halt, step, go etc. to verify the target connection. |
||
+ | |||
+ | == JLink.exe return value == |
||
+ | The return value of the J-Link Commander application (JLink.exe) can be read out int the environment variable ERRORLEVEL. |
||
+ | |||
+ | Examples: |
||
+ | |||
+ | 1. Returns an Error (ERRORLEVEL == 1) |
||
+ | start /wait "J-Link Commander" "JLink.exe" -if InvalidInterfaceParameter |
||
+ | ECHO error level is %ERRORLEVEL% |
||
+ | pause |
||
+ | |||
+ | 2. Returns no Error (ERRORLEVEL == 0) |
||
+ | start /wait "J-Link Commander" "JLink.exe" |
||
+ | ECHO error level is %ERRORLEVEL% |
||
+ | pause |
||
+ | |||
+ | For information how to access the environment variable ERRORLEVEL within a java application please refer to: |
||
+ | http://stackoverflow.com/questions/8922485/how-to-execute-echo-errorlevel-in-java |
||
+ | |||
+ | For further information regarding this, please refer to: |
||
+ | http://blogs.msdn.com/b/oldnewthing/archive/2008/09/26/8965755.aspx |
||
+ | |||
+ | == Perform flash download == |
||
+ | J-Link Commander allows to download data files of different types into the flash memory of the target systems. |
||
+ | * Connect J-Link to the PC |
||
+ | * Connect target system to J-Link |
||
+ | * Start J-Link Commander |
||
+ | * Enter the requested settings (e.g. target device, interface settings, etc...) |
||
+ | * Type the following commands: |
||
+ | ** r |
||
+ | ** loadfile <PathToFile> [<DestAddr>] |
||
+ | * J-Link Commander executes the flash download and prints out the time statistics on success. |
||
+ | [[File:JLinkCommander_FlashDownload.png]] |
Revision as of 16:39, 26 February 2016
J-Link Commander (JLink.exe) is a free command line based utility that can be used for verifying proper functionality of J-Link as well as for simple analysis of the target system with J-Link. It supports some simple commands, such as memory dump, halt, step, go etc. to verify the target connection.
JLink.exe return value
The return value of the J-Link Commander application (JLink.exe) can be read out int the environment variable ERRORLEVEL.
Examples:
1. Returns an Error (ERRORLEVEL == 1)
start /wait "J-Link Commander" "JLink.exe" -if InvalidInterfaceParameter ECHO error level is %ERRORLEVEL% pause
2. Returns no Error (ERRORLEVEL == 0)
start /wait "J-Link Commander" "JLink.exe" ECHO error level is %ERRORLEVEL% pause
For information how to access the environment variable ERRORLEVEL within a java application please refer to: http://stackoverflow.com/questions/8922485/how-to-execute-echo-errorlevel-in-java
For further information regarding this, please refer to: http://blogs.msdn.com/b/oldnewthing/archive/2008/09/26/8965755.aspx
Perform flash download
J-Link Commander allows to download data files of different types into the flash memory of the target systems.
- Connect J-Link to the PC
- Connect target system to J-Link
- Start J-Link Commander
- Enter the requested settings (e.g. target device, interface settings, etc...)
- Type the following commands:
- r
- loadfile <PathToFile> [<DestAddr>]
- J-Link Commander executes the flash download and prints out the time statistics on success.