English
Language : 

SH7080_09 Datasheet, PDF (1329/1622 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family
Section 23 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 23.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
1
Set FMATS to value other
MAT
than H'AA to select user MAT switchover
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
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 23.15 Procedure for Erasing User MAT in User Boot Mode
Rev. 4.00 Dec. 15, 2009 Page 1269 of 1558
REJ09B0181-0400