Renesas M32R/ECU Series User Manual page 154

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
(5) Erase All Unlocked Blocks command
The Erase All Unlocked Blocks command erases all flash memory blocks that are not protected. To erase all
unlocked blocks, write the command (H'A7A7) to any address of the internal flash memory. Next, write the
Verify command (H'D0D0) to any address of the internal flash memory, and all unlocked memory blocks are
thereby erased.
Note 1: When an erase operation started, the internal flash memory is automatically readied to run the Read Status command,
so that there is no need to enter the Read Status command until another command is entered.
Note 2: Inspect the Flash Status Register 2 ERASE (erase status), WRERR1 (write status 1) and WRERR2 (write status 2) bits
to check for programming error.
Figure 6.5.11 Erase All Unlocked Blocks Command
START
Write the Erase All Unlocked Blocks
command (H'A7A7) to any address of the
internal flash memory
Write the Verify command (H'D0D0) to
any address of the internal flash memory
Flash memory contents are erased
by Erase All Unlocked Blocks
(Note 1)
Wait for 1 µs
(using a hardware or software timer)
FSTAT bit = 1
YES
Read any address of the internal flash
memory Note 2 to check for erase
error (see Figure 6.4.2)
END
6.5 Programming the Internal Flash Memory
NO
TIME OUT?
10s
Forcibly terminated
(see Figure 6.4.3.)
6-25
INTERNAL MEMORY
NO
YES
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents