a question about the same example from SDK:
it's not clear why when calling
ERM_DRV_GetErrorDetail(INST_ERM1, 0U, &addr);
addr does not contain the address of MEM_TEST_ADDRESS, that is the RAM location the code tried to access but other values.
Furthermore, if double error is generated, would the value of test be different according to the bit we set in channel config?
Solved. When debugging and steppingafter enabling the ecc, the debugger reads back data from the RAM, and this triggers errors from other addresses than expected.
not stepping and placing breakpoints at the right place returned the expected address.