On Sat, 14 Jun 2014 13:50:49 -0400 Liviu Toma email@example.com wrote:
This seems quite random, so I am not sure what's going on.
I think that is exactly what is going on: broken communication that results in random outages and this "funny" behavior.
Before the first operation, I did a full erase, would the detect not work if the chip is erased ?
No, that has nothing to do with each other.
In that case I would ask you how the chip is connected exactly, especially how WP# and HOLD# are driven.
It is very important that all input pins of the flash chip are connected to a defined level but many people dont know that. Is it well connected in your case? Noise on an unconnected hold pin is about the number one of reasons for such erratic behavior.