ECC ERROR

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

ECC ERROR

726 Views
hajianik
Senior Contributor I

Hi,

My target is S32K148 ,

someone recommends that to avoid setting the ECC error bit , the whole RAM (all of the available RAM, needs to be initialized at every start up).

Is that true?

how about FLASH ECC ?

to avoid setting flash ECC , what do I need to do , may be the fact that I'm programming flash will prevent the ECC error?

I know having a CRC and or MAC is a solution but I'm specifically curios about FALSH ECC error?

Thanks,

Koorosh Hajiani

Labels (1)
Tags (1)
0 Kudos
1 Reply

624 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Koorosh,

SRAM ECC code is generated on RAM writes.
Out of POR, the SRAM content including the ECC code is not defined.
You should therefore avoid reading RAM data before they are initialized, the ECC error detection/correction is enabled on SRAM out of reset.

When a Flash phrase is erased, the corresponding Flash ECC code is also erased (all 1s) which is valid state, it can be read.
The ECC code is generated and programmed along with the Flash data during programming.
There are the following Flash commands that can be used to verify that the Flash is correctly erased or programmed:
Read 1s Block, Read 1s Section, Read 1s All Blocks, Program Check
S32K1xx RM rev.11 Section 36.5.10 Margin read commands.

BR, Daniel

0 Kudos