Dears,
I am developing S32K144 Bootloader, and found after updated application, it cannot work when the 2nd time I update the application. It can work normal the 1st time I update the application. And I read out the flash content,found something different in flash same address, please check as below(left is the failure flash content, right is the normal flash content), can you help to advice?
BRs,
Ray
Hello Ray,
Yes, this is a good point from Joey.
"A Flash memory location must be in the erased state before
being programmed."
Have you seen any error in the FSTAT register during writing into the related flash address?
Best regards,
Diana
Are you clearing/erasing the flash in between? The all-zeroes suggest to me that flash may not have been cleared between runs.