S6E2CC/C5/C4/C3/C2/C1 Series Flash Programming Specification, Document Number: 002-04913 Rev. *D
41
1.3.8 Cautions When Using MainFlash Memory
This section explains the cautions when using MainFlash memory.
If this device is reset during the write, the data that is written cannot be guaranteed. Moreover, It is necessary to prevent
an unexpected reset like Watchdog Timer from occurring during the writing and deleting.
If the CPU programming mode is configured (ASZ=”0b01”) in the ASZ[1:0] bits of the flash access size register (FASZR),
do not execute any programs in the flash memory except the DualFlash area. The correct values will not be retrieved and
the program will run out of control.
If the CPU programming mode is configur
ed (ASZ=”0b01”) in the ASZ[1:0] bits of the flash access size register (FASZR)
and the interrupt vector table is in the flash memory except the DualFlash area, ensure that no interrupt requests occur.
The correct values will not be retrieved and the program will run out of control.
If the CPU programming mode is configured (D
ASZ=”0b01”) in the DASZ[1:0] bits of the dual flash access size register
(DFASZR), do not execute any programs in the DualFlash area. The correct values will not be retrieved and the program
will run out of control.
If the CPU programming mode is configured (D
ASZ=”0b01”) in the DASZ[1:0] bits of the dual flash access size register
(DFASZR) and the interrupt vector table is in the DualFlash area, ensure that no interrupt requests occur. The correct
values will not be retrieved and the program will run out of control.
If the CPU programming mode is configured (ASZ=”0b01”) in the ASZ[1:0] bits of the flash access size register (FASZR),
do not transition to low power consumption mode.
If the
CPU ROM mode is configured (ASZ=”0b10”) in the ASZ[1:0] bits of the flash access size register (FASZR), do not
write to the flash memory.
If the CPU programming mode is configured (ASZ=”0b01”) in the ASZ[1:0] bits of the flash access size register (FASZR),
always write to the flash memory in half-words. Do not write in bytes.
If the CPU programming mode is configured (D
ASZ=”0b01”) in the DASZ[1:0] bits of the dual flash access size register
(DFASZR), do not transition to low power consumption mode.
If the CPU ROM mode is configured (D
ASZ=”0b10”) in the DASZ[1:0] bits of the dual flash access size register (DFASZR),
do not write to the flash memory.
If the CPU programming mode is configured (D
ASZ=”0b01”) in the DASZ[1:0] bits of the dual flash access size register
(DFASZR), always write to the flash memory in half-words. Do not write in bytes.
Immediately after issuing the automatic algorithm command to the flash memory, always perform a dummy read before
reading the data that is actually wanted. If data is read immediately after issuing the automatic algorithm command, the
read value cannot be guaranteed.
If the device is forced to transit to the low power consumption mode, ensure the operations of the flash memory automatic
algorithm is completed.See "CHAPTER Low Power Consumption Mode" of the "FM4 Family Peripheral Manual" for details
on the low power consumption mode.
Since ECC bits are added in this series, it is necessary to perform data programming in unites of 32 bits by using 2 times
for 16bit writes. See Section "
1.3.4 Writing to MainFlash Memory in Products Equipped with ECC
" for details on the
procedure.
You cannot rewrite to the address once you wrote to because the ECC (Error Correction Code) has been changed. To
perform rewriting to the same address, erase the address (sector erase or flash erase) in advance.