hi threre,
i have a question about Flash error injection methods on MPC5674F.
in the reference menual of MPC5674F, a ECSM(error correction status module) do not support Flash error injection bits.
I need the flash error injection function, is there any way I can do it?
please answer,
Solved! Go to Solution.
Hi, it can be done by flash over-programming. Pay attention to AN5200, section 5.2:
AN5200 - Error Correcting Codes Implemented on MPC55xx and MPC56xx
and its example 4 or 5:
Example MPC5643L 2b RAM and 2b FLASH ECC error injection CW210
https://community.nxp.com/docs/DOC-105443
Or you may see following one:
Hi, david
I have been implemented a non-correctable error injection code on the MPC5675F with reference to the AN5200 and the MPC5674K example code.
also, i am trying to implement an 1bit error injection code, but an 1bit error reporting interrupt does not occur.
My program sequence is as follows.
1. write the original data A(0x0000000000000001) to a flash memory location (Flash_B: 0x00EFC008 ~ C).
2. Over program data A to data B(0x0000000000000002) to the same flash memory location.
Can not inject 1bit errors in this way? or Is the combination of input data A / B wrong?
Single bit ECC error reporting must be also enabled in UT0[SCBE]. Following sequence must be used for that:
/* 1. Enable UTest mode */
CFLASH.UT0.R = 0xF9F99999;
/* 2. Enable single bit error correction */
CFLASH.UT0.B.SBCE = 1;
/* 3. Finish the UTest mode by writing UT0[UTE] with 0. */
CFLASH.UT0.B.UTE = 0;
Chosen pattern for single bit injection may be as follows:
1. Write the original data A = 0xFFFFFFFF00000000 (syndrome X) to a flash memory location.
2. Over program data A to data B = 0xFFFFFFFF00000001 (syndrome Y) to the same flash memory location.
Thank you for your help.
I solved this problem with your help.
Hi, it can be done by flash over-programming. Pay attention to AN5200, section 5.2:
AN5200 - Error Correcting Codes Implemented on MPC55xx and MPC56xx
and its example 4 or 5:
Example MPC5643L 2b RAM and 2b FLASH ECC error injection CW210
https://community.nxp.com/docs/DOC-105443
Or you may see following one: