70
4.5
Using the J-LinkARM.dll
4.5.1
What is the JLinkARM.dll?
The J-LinkARM.dll is a standard Windows DLL typically used from C or C++, but also
Visual Basic or Delphi projects. It makes the entire functionality of the J-Link / J-
Trace available through the exported functions.
The functionality includes things such as halting/stepping the ARM core, reading/
writing CPU and ICE registers and reading/writing memory. Therefore, it can be used
in any kind of application accessing an ARM core.
4.5.2
Updating the DLL in third-party programs
The JLinkARM.dll can be used by any debugger that is designed to work with it. Some
debuggers, like the IAR C-SPY® debugger, are usually shipped with the JLinkARM.dll
already installed. Anyhow it may make sense to replace the included DLL with the
latest one available, to take advantage of improvements in the newer version.
4.5.2.1 Updating the JLinkARM.dll in the IAR Embedded Workbench
(EWARM)
It's recommended to use the J-Link DLL updater to update the JLinkARM.dll in the
IAR Embedded Workbench. The IAR Embedded Workbench IDE is a high-performance
integrated development environment with an editor, compiler, linker, debugger. The
compiler generates very efficient code and is widely used. It comes with the J-
LinkARM.dll in the arm\bin subdirectory of the installation directory. To update this
DLL, you should backup your original DLL and then replace it with the new one.
Typically, the DLL is located in C:\Program Files\IAR Systems\Embedded Work-
bench 4.0\arm\bin\.
After updating the DLL, it is recommended to verify that the new DLL is loaded as
described in Determining which DLL is used by a program on page 71.
J-Link DLL updater
The J-Link DLL updater is a tool which comes with the J-Link software and allows the
user to update the JLinkARM.dll in all installations of the IAR Embedded Work-
bench, in a simple way. The updater is automatically started after the installation of a
J-Link software version and asks for updating old DLLs used by IAR. The J-Link DLL
updater can also be started manually. Simply enable the checkbox left to the IAR
installation which has been found. Click Ok in order to update the JLinkARM.dll
used by the IAR installation.
J-Link / J-Trace (UM08001)
CHAPTER 4
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
J-Link and J-Trace related software
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers