Hello,
How can i implement this assumption to the software?
All components of you system needs to be in safe state, for micro it is reset state, for other components of the whole system, please refer to their documentaion.
Safe state of the system is usually determined by your safety architect or safety expert.
Is there any sample code or explanation?
Of course no, this is application and its HW dependent.
Is there any register of MCU related to it?
Micro itself is in safe state when your reset line is active. But this is only for micro, not for whole system.
There is only status register which tell you which was last source of reset.
As you seems to me very confused by safety mechanisms a standards, please consult it with your company safety expert.
Best regards,
Peter