I have installed a custom rom (Cynogenmod 10.2) on my *Samsung Galaxy Nexus i9250* GSM three months before, and everything was running good.

But starting 4 days ago, my phone reboots constantly after every boot up. I am unable to uninstall apps, not able to do factory reset, also not able to wipe data from TWRP recovery, not able to copy files to internal sd card.

I tried flashing stock ROM from google using wugfresh toolkit, using fastboot commands and odin tool. Also tried flashing through adb, given permissions through adb. But none of them seems to work.

I erase all partitions through fastboot and created partitions, but everytime I flash a ROM, it stops at writing `system.img` file, giving an protocol error:

```
writing 'system'...FAILED (status read failed (Protocol error))

```

I tried all the possibilities I know, including wiping `/system` from recovery before flashing. Please help as I am getting frustrated as my phone is not working and is almost dead.