207
CHAPTER 2 DEPENDENCE FUNCTIONS
2.4.1.4 Memory Area Types
A unit in which memory is allocated is called an area. There are five different area types.
■ Memory Area Types
A unit to allocate memory is allocated is called an area. There are five different area types as follows:
- User Memory Area
Memory space in the user system is called the user memory area and this memory is called the user
memory. Up to four user memory areas can be set with no limit on the size of each area. Define a region
on a 256-byte boundary.
Access attributes can be set for each area; for example, CODE, READ, etc., can be set for ROM area, and
READ, WRITE, etc. can be set for RAM area. If the MCU attempts access in violation of these attributes,
the MCU operation is suspended and an error is displayed (guarded access break).
To set the user memory area, use the SET MAP command.
- Emulation Memory Area
Memory space substituted for emulator memory is called the emulation memory area, and this memory is
called emulation memory.
It is possible to set up to four areas of 256-KB maximum (including an internal ROM area described later)
as emulation memory area. Define a region on a 256-byte boundary. An area larger than 256-KB can be
specified at one time but is divided internally into two or more 256-KB areas for management purposes.
Memory manipulation commands can be executed in relation to emulation memory areas while MCU
execution is in progress.
Emulation memory areas can be set using the SET MAP command.
Further, the access attributes can be set as with user memory areas.
Note:
Even if the MCU internal resources are set as emulation memory area, access is made to the internal
resources.
- Internal ROM Area
The area where the emulator internal memory is substituted for internal ROM is called the internal ROM
area, and this memory is called the internal ROM memory.
Only one internal ROM area with a size up to 256-KB can be specified.
The internal ROM area with a size up to 1 MB can be specified 2 areas.
Memory manipulation commands can be executed in relation to emulation memory areas while MCU
execution is in progress.
The internal ROM area is capable to set by the "Setup Map" dialog opening by "Debugger Memory Map...
" from "Setup".