Hello,
I am having trouble flashing the internal flash of the MPC5744 dev kit (p/n MPC5744-257DS) with the P&E micro multilink JTAG. It used to work perfectly but the flash programming started to fail at some point and has not recovered since. For information, I was developing code to check the results of the STCU2 BIST but I didn't do anything that could result in permanent memory ECC errors.
As a matter of fact, using a RAM-based application, I can check that no errors are reported by the STCU built-in tests:
STCU.ERR_STAT is 0 and STCU.MBEL and STCU.MBSL are 0x07FFFFFF
However I have an ERR bit set in the C55FMC.MCR (0x00008600) right at the _start label of the S32DS generated code.
I also have the MEMU.ERR_FLAG bits set for the SR_UCO, SR_UCE, F_UCO and F_UCE (0x00000A0A).
MEMU.FLASH_UNCERR_STS value is 0x8000000
MEMU.FLASH_OFLW is 1
and reported address of the uncorrectable error MEMU.FLASH_UNCERR_ADDR is the beginning of the flash (0x00F98000).
Should I worry about the integrity of the internal flash component or am I missing some required error handling ? I wrote a MEMU handler based on "Example_MPC5744P_1b+2b_FLASH_ECC_error_by_UTEST_area_read" example to clear the errors then program the flash using the SDK flash driver but as soon as I try to erase the first 256k block, it looks like the whole RAM memory goes to 0 and I guess I get an IVOR1 exception because the PC gets to execute illegal opcode.
I can provide any info/sample that might be useful to clarify the current situation.
Thanks