<9. Advanced Engineering >
• Example of incorrect saving of retain data
The application shown below gets the FCN/FCJ time using PAS_GETTIME2,
and compares it against "000000" (00:00:00 hours). When a match occurs, it
sets GS_RETAIN_SV_SW to TRUE.
As this application sets GS_RETAIN_SV_SW to TRUE only at 00:00:00 hours,
GS_RETAIN_SV_SW will become FALSE at 00:00:01 hours.
In this application, GS_RETAIN_SV_SW remains TRUE for only one second.
If saving of retain data takes longer than one second, the saving will be aborted
by the application, leaving incomplete retain data on the flash memory.