how Ecc works in S32k31x?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how Ecc works in S32k31x?

297 Views
hagoo
Contributor I

hi, 

i want to know about Ecc.

In reference manual, 

The ECC is calculated over the sum of memory data and memory location address. However only data is written in the memory along with the ECC(address is excluded).

hagoo_0-1679914829818.png

Is that mean, if memory = 3, and address = 0x00000001

1. write interface

- write 3(data) in 0x00000001(address)

- compute Ecc_1 ( data + address = 0x00000004)

2. Read interface

- recompute Ecc_2 ( Read data + address of Read data = 0x00000004)

- compare Ecc_1 and Ecc_2

- if (Ecc_1 != Ecc_2)

  Then Ecc Error occured!

 

I understand like this, it is right?

 

0 Kudos
1 Reply

279 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

It is more complex. ECC is calculated generated from the polynomial, it is not simple sum.

During checking it is not needed to recalculate and compare as according polynomial it can be checked directly.

But it is unimportant for users, so it is not openly documented.

0 Kudos