s32k3 how to recover flash?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k3 how to recover flash?

151件の閲覧回数
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

タグ(1)
0 件の賞賛
返信
4 返答(返信)

106件の閲覧回数
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 件の賞賛
返信

88件の閲覧回数
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 件の賞賛
返信

74件の閲覧回数
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 件の賞賛
返信

118件の閲覧回数
victory
Contributor III
Append:
is it possible to disable flash ecc function?
0 件の賞賛
返信