Consider a embedded system such as Electro Hydraulic Power Steering ECU mounted in a heavy duty commercial truck.
When key switch is turned off, the ECU should executes very limited functionality in sleep. It is not suppose to log faults in sleep mode?
Consider a typical autonomous embedded Steering Control Module. This controller is mounted in a Commercial Truck. It assists in keeping the vehicle in it's lane.
During transition to sleep mode, real camera calibration data is written from RAM to NVM. This data written to NVM is corrupted...