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:
3:d4a2357f06e3
Parent:
2:980e3d46d20e
Child:
4:e66d916797c5
--- a/main.cpp	Sat Mar 05 14:06:46 2016 +0000
+++ b/main.cpp	Sun Mar 06 09:43:24 2016 +0000
@@ -27,7 +27,11 @@
 #include "FM25W256.h"
 
 Serial pc(USBTX, USBRX);
+#if defined(TARGET_LPC1114)
 FM25W256 f_ram(dp2, dp1, dp6, dp18);
+#elif defined(TARGET_LPC1768)
+FM25W256 f_ram(p5, p6, p7, p8);
+#endif
 
 void read_test()
 {