1970866_en-US

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

1970866_en-US

1970866_en-US

s32k3 how to recover flash?

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

Re: s32k3 how to recover flash?

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

Re: s32k3 how to recover flash?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?
Re: s32k3 how to recover flash?

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

回复: s32k3 how to recover flash?Append:
is it possible to disable flash ecc function?
Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 08:23 PM
Updated by: