CHAPTER 16 FLASH MEMORY (
µµµµ
PD70F3107A)
529
User’s Manual U14359EJ4V0UM
16.7.9 Errors during self-programming
The following errors related to manipulation of the flash memory may occur during self-programming. An error
occurs if the return value (r10) of each function is not 0.
Table 16-9. Errors During Self-Programming
Error
Function
Description
Overerase error
Erase verify
Excessive erasure occurs.
Undererase error
(blank check error)
Erase byte verify
Erasure is insufficient. Additional erase operation is
needed.
Verify error
Successive writing in word units
The written data cannot be correctly read. Either an
attempt has been made to write to flash memory that
has not been erased, or writing is not sufficient.
Internal verify error
Internal verify
The written data is not at the correct signal level.
Caution
The overerase error and undererase error may simultaneously occur in the entire flash memory.
16.7.10 Flash information
For the flash information acquisition function (function No. 0), the option number (r7) to be specified and the
contents of the return value (r10) are as follows. To acquire all flash information, call the function as many times as
required in accordance with the format shown below.
Table 16-10. Flash Information
Option No. (r7)
Return Value (r10)
0
Specification prohibited
1
Specification prohibited
2
Bit representation of return value (MSB: bit 31) FFFFFFFFFFFFFFFFAAAAAAAAFFFFFFFF (LSB: bit 0)
Bits 31 to 16: FFFFFFFFFFFFFFFF (reserved for future use)
Mask bits 31 to 16 because they are not normally 0.
Bits 15 to 8: AAAAAAAA (number of areas) (unsigned 8 bits)
Bits 7 to 0:
FFFFFFFF (reserved for future use)
Mask bits 7 to 0 because they are not normally 0.
3+0
End address of area 0
3+1
End address of area 1
Cautions 1.
The start address of area 0 is 0. The “end a 1” of the preceding area is the start
address of the next area.
2. The flash information acquisition function does not check values such as the maximum
number of areas specified by the argument of an option. If an illegal value is specified, an
undefined value is returned.