Hi,
I'm using Bank 7 as Flash data storage and not using FEE driver.
I have some const data which is located in Bank7, this uses the linker script to assign the Flash location of the const data and calculate the ECC.
Attached is an example BlinkyNV project to demonstrate the issue, the const data is a string "Some Stuff to Store in NV".
When the project is programmed into a TMDX570LC43HDK the const data appears correct at the beginning of flash Bank 7 like this
The associated ECC looks like this (looking at the first 4 bytes)
When the example try's to read the const data the Error LED turns on, this shouldn't happen because the ECC should be correct from the linker.
If the sector is erased using the F021 API and the data written back to the same location with auto generate ECC the data is identical to above and looks like this
but the the associated ECC looks like this
As you can see the Auto generated ECC (first 4 bytes) is different from the Linker generated ECC
Resetting the project any subsequent reads of the const data don't cause the Error LED to turn on so the ECC must be correct.
Can you please help explain why there appears to be a problem with the Linker generated ECC for Bank 7.
Kind regards,
Stu