English
Language : 

SH7059 Datasheet, PDF (774/1042 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
24. ROM (SH7058S)
H'000000
H'001000
H'002000
H'003000
H'004000
H'005000
H'006000
H'007000
H'008000
EB0
EB1
EB2
EB3
EB4
EB5
EB6
EB7
Flash memory
(user MAT)
EB8 to EB15
H'0FFFFF
(1) Cancel the emulation mode.
(2) Transfer the user programming/erasing
procedure program.
(3) Download the on-chip programming/
erasing program to the destination set
by FTDAR without overlapping the tuned
data area.
(4) Execute programming after erasing.
<On-chip RAM>
Tuned data area
Download area
H'FFFF0000
H'FFFF0FFF
FTDAR setting
Programming/erasing
procedure program
area
H'FFFFBFFF
Figure 24.19 Programming of Tuned Data
1. After the data to be programmed has fixed values, clear the RAMS bit to 0 to cancel the overlap of RAM. Emulation
mode is canceled and emulation protection is also cleared.
2. Transfer the user programming/erasing procedure program to RAM.
3. Run the programming/erasing procedure program in RAM and download the on-chip programming/erasing program.
Specify the download start address with FTDAR so that the tuned data area does not overlap with the download area.
4. When the EB0 area of the user MAT has not been erased, erasing must be performed before programming. Set the
parameters FMPAR and FMPDR so that the tuned data is designated, and execute programming.
Note:
Setting the RAMS bit to 1 puts all the blocks in flash memory in the programming/erasing-protected state
regardless of the values of the RAM2 to RAM0 bits (emulation protection). Clear the RAMS bit to 0 before actual
programming or erasure.
Though RAM emulation can also be carried out with the user boot MAT selected, the user boot MAT can be
erased or programmed only in boot mode or programmer mode.
Rev.3.00 Mar. 12, 2008 Page 684 of 948
REJ09B0177-0300