S32K312 Dataflash error

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

S32K312 Dataflash error

1,403 Views
kjy106906
Contributor IV

I am using S32K312. (Microsar OS)
An issue occurred while using Dataflash.
A specific area of Dataflash is destroyed and an error occurs when reading that area.
What can cause certain areas of Dataflash to crash?

Although the analysis has not been completed yet, this issue only occurs on MCUs that perform a lot of dataflash reads and writes.

The photo below shows the collapse(????) of a specific area of Dataflash. 

kjy106906_0-1704695606266.png

 

Tags (2)
0 Kudos
Reply
2 Replies

1,382 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

It can be caused by ECC error.

Just to note ECC event reporting on DATA flash accesses may be suppressed
(according to PFCR3[DERR_SUP]) and ECC-clean illegal opcode value 0x1555_1555 may be returned instead of it. But it is not enabled by default and reading of ECC fault affected data lead in bus error.

If data flash is used for EEPROM emulation, our EEPROM emulation is capable to handle it.

In general, multibit ECC error in flash can be caused by
- Unexpected reset or loosing power during flash erase or flash program operation
- Wear out of particular flash sector = number of program/erase cycles that device’s flash is capable to withstand is exceeded (in practice, real endurance is greater than specified minimum).
- Over-programming of particular flash area that is programming without erasing. It is basically software fault.
- Soft error (radiation, electro-magnetic interference, or electrical noise) during reading or executing from flash memory.

 

0 Kudos
Reply

1,358 Views
kjy106906
Contributor IV

Very Thank you @davidtosenovjan 

I have additional questions.
I am doing Dataflash write using the c40 maininterface write function.
I am trying to dataflash write by setting high the PGM of the MCR and setting high the EHV of the MCR, but writing to Dataflash is not possible because WDI is set.
Why is MCRS's WDI SET?
Also, in this case, is there a way to clear the WDI of the MCRS before setting high the PGM and EHV of the MCR

or Can I disable the Flash WDI? (How can I control AMCR Register?)

0 Kudos
Reply