RX610 Group
26. ROM (Flash Memory for Code Storage)
R01UH0032EJ0120 Rev.1.20
Page 865 of 1006
Feb 20, 2013
(3) Initializing the FPU
When a timeout leads to the FRDY bit in FSTATR0 not being set to 1 after an FCU command has been issued,
FRESETR must be used to initialize the FCU. This is also necessary when the FCUERR bit in FSTATR1 has been set. In
either case, maintain the FRESET bit in FRESETR at logical one over a period of at least tRESW2 (see section 28,
Electrical Characteristics). Disable reading from the ROM and data-flash memory over this period. In addition, while the
FRESET bit is 1, FCU commands are disabled because the FENTRYR register is initialized. Restart the processing from
the start, as shown in figure 26.11.
26.6.4.4
Suspension and Resumption
(1) Suspending Programming or Erasure
To suspend programming/erasure for the ROM, use the P/E suspend command.
When issuing a P/E suspend command, check that the ILGLERR, ERSERR, and PRGERR bits in FSTATR0 and the
FCUERR bit in FSTATR1 are 0, and the execution of programming/erasure is normally performed. To confirm that the
suspend command can be received, also check that the SUSRDY bit in FSTATR0 is 1. After issuing a P/E suspend
command, read FSTATR0 and FSTATR1 to confirm that no error occurs.
If an error occurs during programming/erasure, at least one of the ILGLERR, PRGERR, ERSERR, and FCUERR bits is
set to 1. When programming/erasure processing has finished during the interval from when it is checked that the
SUSRDY bit is 1 to when a P/E suspend command is received, the ILGLERR bit is set to 1 because the issued P/E
suspend command is detected as an illegal command.
When programming/erasure processing has finished simultaneously with the reception of a P/E suspend command, no
error occurs and the suspended state is not entered (the FRDY bit in FSTATR0 is 1 and the ERSSPD and PRGSPD bits
in FSTATR0 are 0). When a P/E suspend command is received and then the programming/erasure suspend processing
finishes normally, the FCU enters the suspended state, the FRDY bit is set to 1, and the ERSSPD or PRGSPD bit is set to
1. After issuing a P/E suspend command, check that the ERSSPD or PRGSPD bit is 1 and the FCU enters the suspended
state, and then decide the subsequent flow. When issuing a P/E resume command in the subsequent flow although the
FCU does not enter the suspended state, an illegal command error occurs and the FCU is placed in the command-locked
state (see section 26.8.2, Error Protection).
If the erasure suspended state is entered, programming to blocks other than an erasure target can be performed.
Additionally, the programming and erasure suspended states can change to ROM read mode by clearing FENTRYR.
For details on FCU operations at the reception of a P/E suspend command, see section 26.7, Suspending Operation.
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...