English
Language : 

HD64F2168 Datasheet, PDF (694/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer
Except for MAT switching, the programming procedure is the same as that in user program mode.
The area that can be executed in the steps of the user procedure program (on-chip RAM, user
MAT, and external space) is shown in section 20.4.4, Procedure Program and Storable Area for
Programming Data.
(3) User MAT Erasing in User Boot Mode
For erasing the user MAT in user boot mode, additional processing 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 20.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
specify download
destination by FTDAR
Set FKEY to H'A5
1
Set FMATS to value other
than H'AA to select user MAT
MAT
switchover
Set SCO to 1 and
execute download
Set FKEY to H'A5
Clear FKEY to 0
DPFR = 0 ?
No
Yes Download error processing
Set the FPEFEQ
parameters
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
No
Yes Initialization error processing
Disable interrupts
and bus master operation
other than CPU
1
User-boot-MAT
selection state
Set FEBS parameter
Programming
JSR FTDAR setting + 16
FPFR = 0 ?
No
Yes Clear FKEY and erasing
error processing
No
Required
block erasing is
completed?
Yes
Clear FKEY to 0
Set FMATS to H'AA to
select user boot MAT
MAT
switchover
End erasing
procedure program
Note: The MAT must be switched by FMATS to perform
the erasing error processing in the user boot MAT.
Figure 20.15 Procedure for Erasing User MAT in User Boot Mode
Rev. 3.00, 03/04, page 654 of 830