The "enable write status" command has to be sent before "write status" command to unlock memory area.
Fork of SST25VF by
Revision 1:533050c756e0, committed 2014-12-28
- Comitter:
- timucinanuslu
- Date:
- Sun Dec 28 23:48:29 2014 +0000
- Parent:
- 0:1633dfa4b768
- Commit message:
- send "enable write status" before "write status" sending
Changed in this revision
SST25VF.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SST25VF.cpp Sun Jan 15 13:51:16 2012 +0000 +++ b/SST25VF.cpp Sun Dec 28 23:48:29 2014 +0000 @@ -45,6 +45,10 @@ void SST25VF::unlock() { select(); + _spi.write(EWSR); + deselect(); + + select(); _spi.write(WRITE_STATUS); _spi.write(0); deselect();