updated features for two different types of sniffing. fixed and scrolling. This can...
[goodfet] / client / gplay-arm.py
index eb253b3..2ab3fe9 100755 (executable)
@@ -6,7 +6,7 @@ from intelhex import IntelHex
 
 data = []
 
-client=GoodFETARM();
+client=GoodFETARM7();
 def init():
     #Initailize FET and set baud rate
     print >>sys.stderr,"Connecting to goodfet..."
@@ -15,9 +15,9 @@ def init():
     #Connect to target
     print >>sys.stderr,"Setting up JTAG ARM on goodfet..."
     client.setup()
-    print >>sys.stderr,"Starting JTAG ARM on goodfet..."
+    print >>sys.stderr,"Starting JTAG ARM on goodfet...\n\n"
     client.start()
-    print "STARTUP: "+repr(client.data)
+    print "STARTUP: %s\n"%repr(client.data)
     #
 
 def print_registers():
@@ -109,6 +109,15 @@ def test():
     print "PC:",client.ARMgetPC()
     print "PC:",client.ARMgetPC()
     print "PC:",client.ARMgetPC()
+    print "Testing readChunk/writeChunk"
+    mem=client.ARMreadChunk(0x200000,32)
+    client.ARMwriteChunk(0x200000,mem)
+    mem2=client.ARMreadChunk(0x200000,32)
+    if (mem != mem2):
+        print "Failed: \n%s\n%s"%(repr([hex(x) for x in mem]), repr([hex(x) for x in mem2]))
+    else:
+        print "Passed."
+
 
 def test1():
     global data
@@ -334,7 +343,6 @@ def readtest(start=0,end=14):
         seed += 1
 
 init()
-print "Don't forget to 'client.stop()' if you want to exit cleanly"
 
 
 def printResults():