Hi,
It is possible that the ECC error occurs in the situation described above. However, the machine exception interrupt occurs after the read corrupted data. Do you read EEPROM after the reset, for example, during initialization?
Possible workaround depends on your application requirements, for example:
Check where the source of the machine exception occurs in the MMCEC register before MCU reset by the watchdog in machine exception interrupt.
After that, you can erase memory where the corrupted data are located. Or you can store variable in the RAM which indicates that ECC error occurs in EEPROM. So, you can skip reading corrupted data in a certain memory after reset.
Or you can use the approach described below: https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12Z-machine-exception-caused-by-ECC-issue-...
I hope it helps.
Best regards,
Diana