I have an EEPROM I want to store CRC32 hashes on between 0x0000 and 0x008C. In this range I need a way that I can erase one of the hashes and overwrite its bytes to a default number. By doing this I can iterate through them later searching for a free space which was initialized to my "free space value" to store a new one at that position.
For instance if the memory looks like:
0A0A0A0A
0B0B0B0B
0C0C0C0C
0D0D0D0D
and I erase the third index by overwriting it with my place holder
0A0A0A0A
0B0B0B0B
????????
0D0D0D0D
I can then iterate 4 bytes at a time searching for a free space denoted by the place holder and then write my new hash to that location marked as free.
With that being said with a CRC32 hash, which value is the safest to use as a free place marker, 00000000
, FFFFFFFF
, or a specific other value.
Thanks.