Handling power failure

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Handling power failure

904 次查看
ummerkunnummalk
Contributor III

Hello,

        We use s32k148 in our project and would like to know the failsafe mechanism available in the following scenario:

We need to update the application start adress by modifying vector table at 0x0000_0000.

For this we have erased the first sector from 0x0000_0000 using FTFC commands  and then before programming it with the new address a power failure has occurred.

What will be the behavior in this case once the power is up again?

And is there any mechanism to handle this situation?

Regards,

Ummer K

2 回复数

795 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Ummer,
There is no safe mechanism. Such an interruption of an erase or program command can lead to corruption of the flash content. Please note that the first sector 4KB (0x1000) includes not only the vector table but the Flash configuration field (Section 36.4.1, RM rev9) as well.

Regards,
Daniel

795 次查看
ummerkunnummalk
Contributor III

Thanks Daniel for the update.

0 项奖励
回复