Figure 17.15 Procedure For Erasing User Mat In User Boot Mode - Renesas H8SX/1500 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1500 Series:
Table of Contents

Advertisement

Section 17 Flash Memory (0.18-(m F-ZTAT Version)
(3)
User MAT Erasing in User Boot Mode
Figure 17.15 shows the procedure for erasing the user MAT in user boot mode.
The difference between the erasing procedures in user program mode and user boot mode is the
memory MAT switching as shown in figure 17.15. For erasing the user MAT in user boot mode,
additional processing made by setting FMATS is required: switching from the user boot MAT to
the user MAT, and switching back to the user boot MAT after erasing completes.
Start erasing
procedure program
Select on-chip program
to be downloaded and
specify download
destination by FTDAR
Set FKEY to H'A5
Set SCO to 1 after initializing
VBR and execute download
Clear FKEY to 0
DPFR = 0 ?
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
Disable interrupts
and bus master operation
other than CPU

Figure 17.15 Procedure for Erasing User MAT in User Boot Mode

Rev. 3.00 Mar. 14, 2006 Page 616 of 804
REJ09B0104-0300
No
Yes
Download error processing
No
Yes
Initialization error processing
User-boot-MAT
1
selection state
1
Set FMATS to value
other than H'AA
to select user MAT
Set FKEY to H'5A
Set FEBS parameter
Programming
JSR FTDAR setting + 16
FPFR = 0 ?
Yes
Required
No
block erasing is
completed?
Yes
Clear FKEY to 0
Set FMATS to H'AA to
select user boot MAT
End erasing
procedure program
Note:
The MAT must be switched by FMATS to perform
the erasing error processing in the user boot MAT.
MAT
switchover
No
Clear FKEY and erasing
error processing
MAT
switchover

Advertisement

Table of Contents
loading

Table of Contents