I have questions on how to set the BOM ROM to assume a ECC bit size (4 bit, 8 bit etc) and on how ROM code handles ECC errors?
-
There is a strap for setting ECC to be done in ROM CODE and we do set this strap. But there does not seem to be strap for the ECC correction bit size? How does the ROM code know the bit size of ECC used?
-
Also, although ROM Code corrects ECC errors, on data read from Flash before loading into Memory, does the ROM code on detecting an error, write the corrected Block back to Flash? I suspect that this is not true. So what would most implementers do?
-
Re-Read the Boot code (Code that Boot ROM reads from Flash) and re-detect any errors and write back corrections?
-
Use a Flash which the first Block is guaranteed not to have errors and ensure that the Boot code resides in 1 block.?
-