232 CHAPTER 5 Working with J-Link and J-Trace
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
5.12.1.33ProjectFile
This command is used to specify a file used by the J-Link DLL to save the current
configuration.
Using this command is recommended if settings need to be saved. This is typically
the case if Flash breakpoints are enabled and used. It is recommended that an IDE
uses this command to allow the JLinkARM.dll to store its settings in the same direc-
tory as the project and settings file of the IDE. The recommended extension for
project files is *.jlink.
Assuming the Project is saved under C:\Work\Work and the project contains to tar-
gets name Debug and Release, the debug version could set the file name
C:\Work\Work\Debug.jlink.
The release version could use
C:\Work\Work\Release.jlink.
Note
Spaces in the filename are permitted.
Syntax
ProjectFile = <FullFileName>
Example
ProjectFile = C:\Work\Release.jlink
5.12.1.34ReadIntoTraceCache
This command is used to read a given memory area into the trace instruction cache.
It is mainly used for cases where the download address of the application differs from
the execution address. As for trace analysis only cached memory contents are used
as memory accesses during trace (especially streaming trace) cause an overhead
that is too big, by default trace will only work if execution address is identical to the
download address. For other cases, this command can be used to read specific mem-
ory areas into the trace instruction cache.
Notes
1. This command causes an immediate read from the target, so it should only be called
at a point where memory contents at the given area are known to be valid
Syntax
ReadIntoTraceCache <Addr> <NumBytes>
Example
ReadIntoTraceCache 0x08000000 0x2000
5.12.1.35ScriptFile
This command is used to set the path to a J-Link script file which shall be executed.
J-Link scriptfiles are mainly used to connect to targets which need a special connec-
tion sequence before communication with the core is possible.
Syntax
ScriptFile = <FullFileName>
Example
ScriptFile = C:\Work\Default.JLinkScript