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?
Solved! Go to Solution.
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
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:
Regards,
Daniel
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