9.6.4.2 JLinkArmFlash.dll - A DLL with flash programming capabilities
An enhanced version of the JLinkARM.DLL, which has add. API functions. The addi-
tional API functions allow loading and programming a data file. This DLL comes with
a sample executable, as well as the source code of this executable and a project file.
This can be an interesting option if you want to write your own programs for produc-
tion purposes. This DLL also requires an extra license from SEGGER; contact us for
more information.
Output of Sample program:
SEGGER JLinkARMFlash for ST STR710FR2T6 V1.00.00
Compiled 11:16:22 on May
This program and the DLL are (c) Copyright 2005 SEGGER, www.segger.com
Connecting to J-Link
Resetting target
Loading data file... 1060 bytes loaded.
Erasing required sectors... O.K. - Completed after 0.703 sec
Programming... O.K. - Completed after 0.031 sec
Verifying... O.K. - Completed after 0.031 sec
9.6.4.3 RDI flash loader: Allows flash download from any RDI-compliant
tool chain
RDI, (Remote debug interface) is a standard for "debug transfer agents" such as J-
Link. It allows using J-Link from any RDI compliant debugger. RDI by itself does not
include download to flash. To debug in flash, you need to somehow program your
application program (debuggee) into the flash. You can use J-Flash for this purpose,
use the flash loader supplied by the debugger company (if they supply a matching
flash loader) or use the flash loader integrated in the J-Link RDI software. The RDI
software as well as the RDI flash loader require licenses from SEGGER.
9.6.4.4 Flash loader of compiler / debugger vendor such as IAR
A lot of debuggers (some of them integrated into an IDE) come with their own flash
loaders. The flash loaders can of course be used if they match your flash configura-
tion, which is something that needs to be checked with the vendor of the debugger.
9.6.4.5 Write your own flash loader
Implement your own flash loader using the functionality of the JLinkARM.dll as
described above. This can be a time consuming process and requires in-depth knowl-
edge of the flash programming algorithm used as well as of the target system.
J-Link / J-Trace (UM08001)
4 2005.
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
179
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers