s32k3 how to recover flash?

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

s32k3 how to recover flash?

147 Views
victory
Contributor III

Hi NXP,

    i'm working on boot application for updating app program.  when boot program pflash meet some error and trigger a swt reset mcu, then checking plash is partial unaccessible.  as pic below,

1. is this a flash ecc error case?

2. in that situation, jlink cant program the flash,   could you give some advice how to recover the plash to normal state?

PixPin_2024-10-10_11-20-22.png

Tags (1)
0 Kudos
Reply
4 Replies

102 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @victory,

Can you specify the S32K3xx part number?

If the MCU is reset while the flash operation is in progress, the content of the flash cannot be defined, and ECC error should be expected.

If there is an uncorrectable ECC error detected during a read operation, the MCRS[ERR] flag is set.

The detection can be suppressed:

danielmartynek_0-1728559108296.png

 

Regards,

Daniel

0 Kudos
Reply

84 Views
victory
Contributor III
i am using s32k312
is there any method to detect the error without read the target flash region to get if that area has a ecc error and unaccessible?
0 Kudos
Reply

70 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @victory,

The flash must be read first.

I would maybe focus on why the flashing gets stuck and why the MCU has to be reset by the WDOG.

The flash block that is being programmed must not be accessed by any master on the bus.

This might requires disabling interrupts or placing the flash driver into SRAM.

 

Regards,

Daniel

0 Kudos
Reply

114 Views
victory
Contributor III
Append:
is it possible to disable flash ecc function?
0 Kudos
Reply