104
memory in such areas by dereferencing non-initialized pointers even if the debugged
program (the debuggee) is working perfectly. In situations like this, defining critical
memory areas is a good solution.
Syntax
map exclude <SAddr>-<EAddr>
Example
This is an example for the map
LPC2148 MCU.
Memory map
0x00000000-0x0007FFFF
0x00080000-0x3FFFFFFF
0x40000000-0x40007FFF
0x40008000-0x7FCFFFFF
0x7FD00000-0x7FD01FFF
0x7FD02000-0x7FD02000
0x7FFFD000-0x7FFFFFFF
0x80000000-0xDFFFFFFF
0xE0000000-0xEFFFFFFF
0xF0000000-0xFFFFFFFF
The "problematic" memory areas are:
0x00080000-0x3FFFFFFF
0x40008000-0x7FCFFFFF
0x7FD02000-0x7FD02000
0x80000000-0xDFFFFFFF
To exclude these areas from being accessed through J-Link the map exclude com-
mand should be used as follows:
map exclude 0x00080000-0x3FFFFFFF
map exclude 0x40008000-0x7FCFFFFF
map exclude 0x7FD02000-0x7FD02000
map exclude 0x80000000-0xDFFFFFFF
5.10.1.7 map indirectread
This command can be used to read a memory area indirectly. Indirectly reading
means that a small code snippet is downloaded into RAM of the target device, which
reads and transfers the data of the specified memory area to the host. Before map
indirectread can be called a RAM area for the indirectly read code snippet has to be
defined. Use therefor the map ram command and define a RAM area with a size of >=
256 byte.
Typical applications
Refer to chapter Fast GPIO bug on page 139 for an example.
Syntax
map indirectread <StartAddressOfArea>-<EndAddress>
Example
map indirectread 0x3fffc000-0x3fffcfff
J-Link / J-Trace (UM08001)
CHAPTER 5
exclude command in combination with an NXP
On-chip flash memory
Reserved
On-chip SRAM
Reserved
On-chip USB DMA RAM
Reserved
Boot block (remapped from on-chip flash memory)
Reserved
VPB peripherals
AHB peripherals
Reserved
Reserved
Reserved
Reserved
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
Working with J-Link and J-Trace
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers