Difference between revisions of "Using J-Link Command Strings"

From SEGGER Wiki
Jump to: navigation, search
(Eclipse)
Line 5: Line 5:
 
https://wiki.segger.com/J-Link_Commander#Using_J-Link_Command_Strings
 
https://wiki.segger.com/J-Link_Commander#Using_J-Link_Command_Strings
 
== Eclipse ==
 
== Eclipse ==
https://wiki.segger.com/Eclipse#Using_J-Link_script_files
+
https://wiki.segger.com/Eclipse#Using_J-Link_Command_Strings
  +
 
== Generic ==
 
== Generic ==
 
If no [[J-Link settings file]] is present, "'''Default.JLinkScript'''" is loaded if present in the same directory as the J-Link DLL.<br>
 
If no [[J-Link settings file]] is present, "'''Default.JLinkScript'''" is loaded if present in the same directory as the J-Link DLL.<br>

Revision as of 12:28, 24 January 2018

The behavior of the J-Link can be customized via command strings passed to the JLinkARM.dll which controls J-Link. In some IDEs and applications such as the J-Link Commander, command strings can be directly passed via a native command. If this is not supported, there are some alternative options which can be used to use J-Link Command Strings anyhow. For further information regarding this, please refer to Using J-Link Command Strings#Generic.

J-Link Commander

https://wiki.segger.com/J-Link_Commander#Using_J-Link_Command_Strings

Eclipse

https://wiki.segger.com/Eclipse#Using_J-Link_Command_Strings

Generic

If no J-Link settings file is present, "Default.JLinkScript" is loaded if present in the same directory as the J-Link DLL.
If a J-Link J-Link settings file is present, but no script file is specified inside of the script file, "<Name of the J-Link settings file>.JLinkScript" is loaded if present in the same directory as the J-Link settings file.
Alternatively, a J-Link script file can be specified by using one of the following ways:

  1. Via J-Link settings file:
    1. Add or edit the line
    2. "ScriptFile="<path to script file""
      
    3. (e.g. ScriptFile="C:\Work\Test.jlinkscript") to the [CPU] section of the J-Link settings file
  2. Via J-Link command strings
    1. Execute the command string
    2. "ScriptFile = <path>"
      
    3. e.g. ScriptFile = C:\Work\Test.jlinkscript
  3. Via the J-Link control panel
    1. Specify the path to the J-Link script file in the tab Settings of the J-Link control panel
      GenericIDE ScriptFile ControlPanel Marked.png