
R8C/2C Group, R8C/2D Group
20. Flash Memory
Rev.2.00
Dec 05, 2007
REJ09B0339-0200
20.2
Memory Map
The flash memory contains a user ROM area and a boot ROM area (reserved area).
Figure 20.1 shows the
FlashThe user ROM area of the R8C/2D Group contains an area (program ROM) which stores MCU operating programs
and blocks A and B (data flash) each 1 Kbyte in size.
The user ROM area is divided into several blocks. The user ROM area can be rewritten in CPU rewrite mode and
standard serial I/O and parallel I/O modes.
When rewriting blocks 0 and 1 in CPU rewrite mode, set the FMR02 bit in the FMR0 register to 1 (rewrite
enabled). When the FMR15 bit in the FMR1 register is set to 0 (rewrite enabled), block 0 is rewritable. When the
FMR16 bit is set to 0 (rewrite enabled), block 1 is rewritable. When rewriting blocks 2 and 3 in CPU rewrite mode,
FMR02 bit is set to 1 (rewrite enabled), blocks 2 and 3 are rewritable.
The rewrite control program for standard serial I/O mode is stored in the boot ROM area before shipment. The boot
ROM area and the user ROM area share the same address, but have separate memory areas.
Figure 20.1
Flash Memory Block Diagram for R8C/2C Group
Boot ROM area
(reserved area)(4)
8 Kbytes
0E000h
04000h
Block 0: 32 Kbytes(1)
0C000h
13FFFh
64 Kbytes ROM product
Block 1: 32 Kbytes(1)
Block 0: 16 Kbytes(1)
0BFFFh
0C000h
0FFFFh
48 Kbytes ROM product
Block 1: 32 Kbytes(1)
04000h
0BFFFh
0FFFFh
10000h
NOTES:
1. When the FMR02 bit in the FMR0 register is set to 1 (rewrite enabled) and the FMR15 bit in the FMR1 register is set to 0 (rewrite enabled),
block 0 is rewritable. When the FMR16 bit is set to 0 (rewrite enabled), block 1 is rewritable (only for CPU rewrite mode).
2. When the FMR02 bit in the FMR0 register is set to 1 (rewrite enabled), blocks 2 and 3 are rewritable (only for CPU rewrite mode).
3. The emulator debugger cannot be used by address 20000h to 23FFFh. Refer to 24. Notes on Emulator Debugger.
4. This area is for storing the boot program provided by Renesas Technology.
User ROM area
0FFFFh
Program
ROM
User ROM area
Block 0: 32 Kbytes(1)
0C000h
13FFFh
96 Kbytes ROM product
Block 1: 32 Kbytes(1)
04000h
0BFFFh
0FFFFh
10000h
Block 2: 32 Kbytes(2)
1BFFFh
14000h
Program
ROM
Block 0: 32 Kbytes(1)
0C000h
13FFFh
128 Kbytes ROM product
Block 1: 32 Kbytes(1)
04000h
0BFFFh
0FFFFh
10000h
Block 2: 32 Kbytes(2)
1BFFFh
14000h
User ROM area
Block 3: 32 Kbytes(2, 3)
23FFFh
1C000h