I am using a resonator
10.0MHz +/-0.5% Built-in caps Chip type:
The resonator is connected in parallel with a resistor 1MOhm and 220R in series.
The chip uses the internal oscillator. The 10 MHz is used for Baud rate generation for the UART.
It happens that oscillator stops.