Now I use MPC5744P chip, how to detect and handle ECC error of Dflash? I tried to make ECC in Dflash and Pflash respectively. When ECC is made in Pflash, MEMU module can detect it and will enter IVOR1, but when ECC is made in Dflash, it will not.
ECC event reporting on data flash accesses is disabled. On multi-bit ECC event, the corrupted read data is replaced with a fixed, ECC-clean illegal opcode value (on this device 0xFFFF_FFFF).
Pay attention to following appnote, section 3.4.2:
https://www.nxp.com/docs/en/application-note/AN13179.pdf
Even though 0xFFFF_FFFF is returned value, the ECC error will be caught in flash registers, so user can check whether read value is 0xFFFF_FFFF or it is ECC multibit error.