Datasheet

Section 17 ROM
Rev.7.00 Feb. 14, 2007 page 736 of 1108
REJ09B0089-0700
vector is read from is undetermined. Perform MAT switching in accordance with the description
in section 17.27, Switching between User MAT and User Boot MAT.
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 17.29.3, Procedure Program and Storable Area for
Programming Data.
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 17.74 shows the procedure for erasing the user MAT in user boot mode.
Start erasing
procedure program
Select on-chip program
to be downloaded
Set FKEY to H'A5 and
set download destination
by FTDAR
DPFR=0 ?
Yes
No
Download error processing
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting+32
Yes
End erasing
procedure program
FPFR=0 ?
No
Initialization error processing
Disable interrupts
and bus master operation
other than CPU
Clear FKEY to 0
Set FEBS parameter
Programming
JSR FTDAR setting+16
Yes
FPFR=0 ?
No
Clear FKEY and erasing
error processing
*
Yes
Required
block erasing is
completed?
No
Set FKEY to H'5A
Clear FKEY to 0
1
1
Download
Initialization
Erasing
Set FMATS to value other
than H'AA to select user MAT
Set SCO to 1 and
execute download
Set FMATS to H'AA to
select user boot MAT
User-boot-MAT selection state
User-MAT selection state
User-boot-MAT
selection state
Note: * The MAT must be switched by FMATS to perform the
erasing error processing in the user boot MAT.
MAT
switchover
MAT
switchover
Figure 17.74 Procedure for Erasing User MAT in User Boot Mode