J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
205
5.10 The J-Link settings file
Most IDEs provide a path to a J-Link settings file on a per-project-per-debug-config-
uration basis. This file is used by J-Link to store various debug settings that shall sur-
vive between debug sessions of a project. It also allows the user to perform some
override of various settings. If a specific behavior / setting can be overridden via the
settings file, is explained in the specific sections that describe the behavior / setting.
Since the location and name of the settings file is different for various IDEs, in the
following the location and naming convention of the J-Link settings file for various
IDEs is explained.
5.10.1 SEGGER Embedded Studio
Settings file with default settings is created on first start of a debug session. There is
one settings file per build configuration for the project.
Naming is: _<ProjectName>_<DebugConfigName>.jlink
The settings file is created in the same directory where the project file (*.emProject)
is located.
Example: The SES project is called "MyProject" and has two configurations "Debug"
and "Release". For each of the configurations, a settings file will be created at the
first start of the debug session:
_MyProject_Debug.jlink
_MyProject_Release.jlink
5.10.2 Keil MDK-ARM (uVision)
Settings file with default settings is created on first start of a debug session. There is
one settings file per project.
Naming is: JLinksettings.ini
The settings file is created in the same directory where the project file (*.uvprojx) is
located.
5.10.3 IAR EWARM
Settings file with default settings is created on first start of a debug session. There is
one settings file per build configuration for the project.
Naming is: <ProjectName>_<DebugConfig>.jlink
The settings file is created in a "settings" subdirectory where the project file is
located.
5.10.4 Mentor Sourcery CodeBench for ARM
CodeBench does not directly specify a J-Link settings file but allows the user to spec-
ify a path to one in the project settings under Debugger -> Settings File. We rec-
ommend to copy the J-Link settings file template from
$JLINK_INST_DIR$\Samples\JLink\SettingsFiles\Sample.jlinksettings to the
directory where the CodeBench project is located, once when creating a new project.
Then select this file in the project options.