Lpc - Segger J-Link User Manual

Jtag emulators for arm cores
Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

If you experience problems with a particular device, do not hesitate to contact Seg-
ger.
7.5.1

LPC

7.5.1.1 Fast GPIO bug
The values of the fast GPIO registers can not be read direct via JTAG from a debug-
ger. The direct access to the registers corrupts the returned values. This means that
the values in the fast GPIO registers normally can not be checked or changed from a
debugger.
Solution / Workaround
J-Link supports command strings which can be used to read a memory area indirect.
Indirectly reading means that a small code snippet will be written into RAM of the
target device, which reads and transfers the data of the specified memory area to the
debugger. Indirectly reading solves the fast GPIO problem, because only direct regis-
ter access corrupts the register contents.
Define a 256 byte aligned area in RAM of the LPC target device with the J-Link com-
mand map ram and define afterwards the memory area which should be read indirect
with the command map indirectread to use the indirectly reading feature of J-Link.
Note that the data in the defined RAM area is saved and will be restored after using
the RAM area.
This information is applicable to the following devices:
LPC2101
LPC2102
LPC2103
LPC213x/01
LPC214x (all devices)
LPC23xx (all devices)
LPC24xx (all devices)
Example
J-Link commands line options can be used for example with the C-SPY debugger of
the IAR Embedded Workbench. Open the Project options dialog and select Debug-
ger. Select Use command line options in the Extra Options tap and enter in the
textfield --jlink_exec_command "map ram 0x40000000-0x40003fff; map indirec-
tread 0x3fffc000-0x3fffcfff; map exclude 0x3fffd000-0x3fffffff;" as shown
in the screenshot below.
J-Link / J-Trace (UM08001)
© 2004-2011 SEGGER Microcontroller GmbH & Co. KG
165

Advertisement

Table of Contents

Troubleshooting

loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

This manual is also suitable for:

J-trace

Table of Contents