Hi Thank you for the reply. Even after flashing new code it was not exiting from the safe mode.
This solution worked.
Thank you so much once again.