(CPU) Turning the power supply on or off often causes MCU operation to fail. What could be the cause?
One possible reason is that register Z is not set. Since the initial value of register Z is undefined, it needs to be set after reset is deasserted. In addition, the initial values of some other registers and flags are undefined, so they need to be checked. (#105008)