FM25W256, it was write protect first. 初期状態ではライトプロテクトがかかっていることに対応。 "The WREN command must be issued prior to any write operation." from FM25W256 datasheet.

Dependencies:   FM25W256 mbed

Fork of Hello-FM25W256 by Toyomasa Watarai

Revision:
4:e66d916797c5
Parent:
3:d4a2357f06e3
--- a/main.cpp	Sun Mar 06 09:43:24 2016 +0000
+++ b/main.cpp	Sat Jan 07 16:27:38 2017 +0000
@@ -76,6 +76,8 @@
 
 int main()
 {
+    f_ram.clear_write_protect();
+
     pc.printf("\nFM25W256 test program - write test? (y/n) ");
     if (pc.getc() == 'y') {
         write_test();