R01UH0822EJ0100 Rev.1.00
Page 980 of 1041
Jul 31, 2019
RX13T Group
31. Flash Memory (FLASH)
31.11.6
Procedure to Erase the User Area and Data Area
Procedure to erase blocks that are programmed in the user area and data area to program a user program and data is as
follows.
(1) Send an erase preparation command (48h).
(2) Send a block erase command (59h).
(3) To place the MCU in the program/erase host command wait state, send a block erase command for ending the
erasure (59h 04h FFh FFh FFh FFh A7h).
Figure 31.33
Procedure to Erase the User Area and Data Area
48h (erase preparation command)
06h (ACK)
D9h, XXh (error code)
06h (ACK)
Repeat until all blocks for
programming the user
program are erased.
59h (block erase command for end of erase)
06h (ACK)
59h (block erase command)
Serial
programmer
MCU
Erase
(2)
(1)
(3)