updated features for two different types of sniffing. fixed and scrolling. This can...
[goodfet] / client / goodfet.em260
index 46417d6..ba383dc 100755 (executable)
@@ -3,8 +3,17 @@
 #GoodFET SPI Flash Client
 #by Travis Goodspeed
 
 #GoodFET SPI Flash Client
 #by Travis Goodspeed
 
-#N.B.,
-#Might be Winbond W25x80-specific.
+# Pinout:
+#  1 MISO
+#  2 VCC
+#  3 MOSI
+#  4
+#  5 !SS
+#  6
+#  7 CLK
+#  8 !HOST_INT
+#  9 GND
+# 11 !WAKE
 
 import sys;
 import binascii;
 
 import sys;
 import binascii;
@@ -49,13 +58,19 @@ if(sys.argv[1]=="test"):
     for foo in range(0,4):
         print "%04x" % client.rand16();
 if(sys.argv[1]=="randtest"):
     for foo in range(0,4):
         print "%04x" % client.rand16();
 if(sys.argv[1]=="randtest"):
-    print "# Even Odd"
+    print "Even Odd HEven LEven Hodd Lodd "
     max=2**33;
     foo=0;
     while foo<max:
     max=2**33;
     foo=0;
     while foo<max:
-        print "%8i %8i" % (
-            client.rand16(),
-            client.rand16());
+        even=client.rand16();
+        odd=client.rand16();
+        print "%8i %8i %8i %8i %8i %8i" % (
+            even,
+            odd,
+            even>>8,
+            even&0xFF,
+            odd>>8,
+            odd&0xFF);
         sys.stdout.flush()
         foo=foo+1;
 
         sys.stdout.flush()
         foo=foo+1;