Hi all,
the LC4357 device has the permanent Flash ECC check - cannot be switched off.
TRM (SPNU563) states: "The ECC values for all of the flash memory space (flash banks 0 through 6) must be programmed into the flash before the program/data can be read. This can be done by generating the correct values of the ECC with an external tool such as nowECC or may be generated by the programming tool."
Is there a procedure defined how to initiate the ECC section for the erased sectors by means of F021 API functions? Could it be as follows:
// the loop over the entire sector // to calculate ECC of all "1"s - the actual address must be taken in account ecc = Fapi_calculateEcc(addr, 0xFFFFFFFFFFFFFFFFu) // to write only the actual ECC (without any data) Fapi_issueProgrammingCommand(addr, NULL, 0, &ecc, 1, Fapi_EccOnly); // to increment the actual address addr += 8;
Can we rely on the fact that the erased sector consists of all "1"s? If not there is the unsolvable issue - the access to Flash Bytes with uninitialized ECC bits will cause the uncorrectable error.
Please may you clarify me this situation?
Best regards,
Jiri