Basically, initial settings of the internal peripheral I/O may be described anywhere as long as they are described before the internal peripheral I/O is actually used.
If initial settings of a port that is to be set in the output mode are late, the influence of noise may increase.
In addition, the operating clock operates at a low frequency in the default status.
Completing initial settings as soon as possible is recommended, taking the relationship between the supply voltage and operating clock frequency into consideration.
Moreover, manipulating the setting of the watchdog timer after the execution program has been started is not recommended.