Datasheet
Section 25 Flash Memory
Rev. 2.00 Aug. 20, 2008 Page 945 of 1198
REJ09B0403-0200
Bit Bit Name
Initial
Value
R/W Description
3 EB R/W Erase Block Select Error Detect
Returns the check result whether the specified erase-
block number is in the block range of the user MAT.
0: Setting of erase-block number is normal
1: Setting of erase-block number is abnormal
2, 1 Unused
Return 0.
0 SF R/W Success/Fail
Indicates whether the erasing processing is ended
normally or not.
0: Erasure is ended normally (no error)
1: Erasure is ended abnormally (error occurs)
25.4 On-Board Programming Mode
When the pin is set in on-board programming mode and the reset start is executed, the on-board
programming state that can program/erase the on-chip flash memory is entered. On-board
programming mode has three operating modes: boot mode, user program mode, and user boot
mode.
For details of the pin setting for entering each mode, see table 25.5. For details of the state
transition of each mode for flash memory, see figure 25.2.
Table 25.5 Setting On-Board Programming Mode
Mode Setting FWE MD2 MD1 NMI PF5
SCI_1 1 0 0 1 0
Boot mode
USB 1 0 0 1 1
User program mode 1* 1 1 0/1
User boot mode 1 0 0 0
Note: * Before downloading the programming/erasing programs, the FLSHE bit must be set to
1 to transition to user program mode.










