Another possibility is, you increased the MCLK frequency from 1 MHz to 16 MHz without waiting for Vcc to reach the necessary level. The CPU may crash and wondered into Flash-Erase code by mistake.
↧