Hi, I am trying to implement Blank check function for Code Flash in Rh850F1L so that No ECC exception is generated in case of reading a blank flash area. I am referring to Rh850F1L hardware manual Rev 1.00 Jan 2014, section 35.9.4 ECC Test Function for the Code Flash. I am following the steps below: If I do something like this ECCTST=1; uint32 ECC= *(uint32*)0x8000; The first 9 bits will indicate the ECC, but what is the address range for which I am getting this ECC value? Does these 9 bits indicate ECC for the 4 bytes starting from 0x8000, or it is the ECC for the whole programming unit i.e. 256 bytes starting from 0x8000. Also for an erased flash or flash written with 0xFF, will I get the same ECC value (0xFF) or different for the two cases. The manual does not mention about the ECC algorithm or anything else. Please reply ASAP as this is hindering my project. Regards,
↧