Figure 17.14 Procedure For Programming User Mat In User Boot Mode; Figure 17.15 Procedure For Erasing User Mat In User Boot Mode; Figure 17.20 Switching Between User Mat And User Boot Mat - Renesas H8SX/1520 Series Hardware Manual

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

Advertisement

Item
17.8.3 User Boot Mode
Figure 17.14 Procedure for
Programming User MAT in User
Boot Mode
Figure 17.15 Procedure for
Erasing User MAT in User Boot
Mode
17.11 Switching between User
MAT and User Boot MAT
Figure 17.20 Switching between
User MAT and User Boot MAT
Rev. 3.00 Mar. 14, 2006 Page 794 of 804
REJ09B0104-0300
Downloaded from
Elcodis.com
electronic components distributor
Page Revision (See Manual for Details)
614
Amended
Start programming
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 ?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
Yes
Disable interrupts
and bus master operation
other than CPU
1
616
Amended
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 ?
Yes
Set the FPEFEQ
parameter
Initialization
JSR FTDAR setting + 32
FPFR = 0 ?
Yes
Disable interrupts
and bus master operation
other than CPU
1
Added
629
Procedure for switching to the user boot MAT
2.
Write H'AA to FMATS*.
Procedure for switching to the user MAT
2.
Write other than H'AA to FMATS*.
Note: * Set the FLSHE bit in the system control
register (SYSCR) to 1 when making access to
FMATS.
Set FMATS to value
other than H'AA
to select user MAT
Set FKEY to H'5A
Set parameter to ER0 and
ER1 (FMPAR and FMPDR)
Programming
JSR FTDAR setting + 16
No
Download error processing
Required data
No
programming is
No
Clear FKEY to 0
Initialization error processing
Set FMATS to H'AA to
select user boot MAT
End programming
User-boot-MAT
procedure program
selection state
Note:
The MAT must be switched by FMATS
to perform the programming error
processing in the user boot MAT.
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
No
Download error processing
No
block erasing is
No
Clear FKEY to 0
Initialization error processing
Set FMATS to H'AA to
select user boot MAT
End erasing
User-boot-MAT
procedure program
selection state
Note:
The MAT must be switched by FMATS to perform
the erasing error processing in the user boot MAT.
1
MAT
switchover
FPFR = 0 ?
No
Clear FKEY and programming
Yes
error processing
completed?
Yes
MAT
switchover
1
MAT
switchover
FPFR = 0 ?
No
Clear FKEY and erasing
Yes
error processing
Required
completed?
Yes
MAT
switchover

Advertisement

Table of Contents
loading

Table of Contents