As a safety precaution, it is possible to lock the current Clock System configuration until the next reset. If your application is going to run from one clock configuration, it could be wise to protect that configuration from accidental changes.
The procedure for locking the configuration is as follows:
If the External Oscillator Failure Detector is enabled, a failure will unlock the Clock System configuration. See the External Oscillator Failure Detector section for details.