Flash Error Injection methods on MPC5674F

cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Error Injection methods on MPC5674F

Jump to solution
371 Views
youngseolee
Contributor III

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, 

1 Solution
71 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 Kudos
4 Replies
71 Views
youngseolee
Contributor III

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?

0 Kudos
71 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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.

71 Views
youngseolee
Contributor III

Thank you for your help.

I solved this problem with your help.

72 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 Kudos