OK, I've checked it again and fixed a few things, see the read function and the erase also has the block protect disable, and it works again.
It takes just under a minute to flash the whole chip, which is still quite acceptable, I would say. It took WAY longer when the byte write was timed by usleep instead of the myusec_delay.
Are there any more chips that need the block protect disable? Are these block protect bits always at the same position in the status register?
Signed-off-by: Ronald Hoogenboom hoogenboom30@zonnet.nl
---