Have you tried to erase the flash memory with the M5Burner or firmware uploader inside UIFlow offline IDE?