ECC error correction circuit corrects single bit errors on reads and leaves memory content unchanged. The only mean to change memory content (and to fix an error) is to perform write to this memory location.
There is no a way to determine the address of the failed RAM word. Note that MCP event after TESCR1[ECNT] gets overflowed is typically not recoverable, or in other words it must be treated as the fatal error and there is no reason to update corrupted RAM location. So you may need is to detect single ECC errors before ECNT reaches the threshold. For example, this can be done by periodically testing (in timer interrupt) of the TESCR1[ECNT] bits. After ECNT has been changed you can run some background process to rewrite the whole memory in order to fix cumulative single bit errors.
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------