2018-08-20 1:30 AM
2018-08-20 4:31 AM
Supposing this is a custom design, the wrong pins were used or other pins used by the system loader see transitions.
Failure during write/erase, would look at power supply issues, bulk capacitance, and VCAP.
Try to formulate questions properly.