English
Language : 

SH7211 Datasheet, PDF (962/1228 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family
Section 21 Flash Memory
(3) User MAT Erasing in User Boot Mode
For erasing the user MAT in user boot mode, additional processings made by setting FMATS
are required: switching from user-boot-MAT selection state to user-MAT selection state, and
switching back to user-boot-MAT selection state after erasing completes.
Figure 21.15 shows the procedure for erasing the user MAT in user boot mode.
Start erasing
procedure program
Select on-chip program
to be downloaded and
set download destination
by FTDAR
Set FKEY to H'A5
After clearing VBR,
set SCO to 1 and
execute download
Clear FKEY to 0
DPFR=0 ?
No
Yes Download error processing
Set the FPEFEQ and
FUBRA parameters
Initialization
JSR FTDAR setting+32
FPFR=0 ?
No
Yes Initialization error processing
1
1
Set FMATS to value other
MAT
than H'AA to select user MAT switchover
Set FKEY to H'5A
Set FEBS parameter
Programming
JSR FTDAR setting+16
FPFR=0 ?
No
Yes Clear FKEY and erasing
error processing*
Required
No block erasing is
completed?
Yes
Clear FKEY to 0
Set FMATS to H'AA to
MAT
select user boot MAT switchover
User-boot-MAT
selection state
End erasing
procedure program
Note: * The MAT must be switched by FMATS to perform the
erasing error processing in the user boot MAT.
Figure 21.15 Procedure for Erasing User MAT in User Boot Mode
Rev. 2.00 May. 08, 2008 Page 938 of 1200
REJ09B0344-0200