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
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
Thanks Daniel for the update.