J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
223
5.12 Command strings
The behavior of the J-Link can be customized via command strings passed to the
JLinkARM.dll which controls J-Link. Applications such as the J-Link Commander, but
also the C-SPY debugger which is part of the IAR Embedded Workbench, allow pass-
ing one or more command strings. Command line strings can be used for passing
commands to J-Link (such as switching on target power supply), as well as customize
the behavior (by defining memory regions and other things) of J-Link. The use of
command strings enables options which can not be set with the configuration dialog
box provided by C-SPY.
5.12.1 List of available commands
The table below lists and describes the available command strings.
Command Description
AppendToLogFile
Enables/Disables always appending new loginfo to log-
file.
CORESIGHT_SetIndexAHBAP
ToUse
Selects a specific AHB-AP to be used to connect to a
Cortex-M device.
CORESIGHT_SetIndexAPBAP
ToUse
Selects a specific APB-AP to be used to connect to a
Cortex-A or Cortex-R device.
device Selects the target device.
DisableAutoUpdateFW Disables automatic firmware update.
DisableCortexMXPSRAutoC
orrectTBit
Disables auto-correction of XPSR T-bit for Cortex-M
devices.
DisableFlashBPs Disables the FlashBP feature.
DisableFlashDL Disables the J-Link FlashDL feature.
DisableInfoWinFlashBPs Disables info window for programming FlashBPs.
DisableInfoWinFlashDL Disables info window for FlashDL.
DisableMOEHandling
Disables output of additional information about mode
of entry in case the target CPU is halted / entered
debug mode.
DisablePowerSupplyOnClo
se
Disables power supply on close.
EnableAutoUpdateFW Enables automatic firmware update.
EnableEraseAllFlashBank
s
Enables erase for all accessible flash banks.
EnableFlashBPs Enables the FlashBP feature.
EnableFlashDL Enables the J-Link FlashDL feature.
EnableInfoWinFlashBPs Enables info window for programming FlashBPs.
EnableInfoWinFlashDL Enables info window for FlashDL.
EnableMOEHandling
Enables output of additional information about mode
of entry in case the target CPU is halted / entered
debug mode.
EnableRemarks
Enable detailed output during CPU-detection / connec-
tion process.
ExcludeFlashCacheRange
Invalidate flash ranges in flash cache, that are config-
ured to be excluded from flash cache.
Hide device selection Hide device selection dialog.
HSSLogFile
Logs all HSS-Data to file, regardless of the application
using HSS.
InvalidateCache Invalidates Cache.
InvalidateFW Invalidating current firmware.
map exclude Ignores all memory accesses to specified area.
Table 5.12: Available command strings