RX610 Group
26. ROM (Flash Memory for Code Storage)
R01UH0032EJ0120 Rev.1.20
Page 864 of 1006
Feb 20, 2013
26.6.4.3
Error Processing
The following passages describe the flow of error processing. For details on errors, see section 26.8, Protection.
(1) Checking Flash Status Register 0 (FSTATR0)
To check FSTATR0, read FSTATR0 directly or read the ROM programming/erasure address in ROM status read mode.
For the reading in ROM status read mode, see section 26.6.4.1 (4)Switching to ROM Status Read Mode.
(2) Clearing Flash Status Register 0 (FSTATR0)
To clear the ILGLERR, ERSERR and PRGERR bits in FSTATR0, use the status register clear command.
When one of the ILGLERR, ERSERR and PRGERR bits in FSTATR0 is 1, the FCU is placed in the command-locked
state and receives no FCU commands other than the status register clear command. If the ILGLERR is 1, also check the
values of the ROMAE, DFLAE, DFLRPE, and DFLWPE bits in FASTAT. Even if issuing a status register clear
command without clearing these bits, the ILGLERR bit is not cleared.
ILGLERR bit check
Read FASTAT
Write 10h to FASTAT
No
Yes
Write 50h to ROM programming/
erasure address in byte access
10h
"0"
"1"
Start
End
Figure 26.18 Procedure for Clearing FSTATR0