Minor cleanup on MSP430 client.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 4 Feb 2011 01:29:04 +0000 (01:29 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Fri, 4 Feb 2011 01:29:04 +0000 (01:29 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@882 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/GoodFETMSP430.py
client/goodfet.msp430

index 0ef833c..e7cc368 100644 (file)
@@ -11,8 +11,10 @@ from GoodFET import GoodFET;
 
 class GoodFETMSP430(GoodFET):
     #Set APP to be MSP430APP or MSP430X2APP, the latter being preferred.
+    
+    #0x16 for class, 0x17 for SBW, 0x11 by default
     APP=0x11;
-    MSP430APP=0x11;    #Changed by inheritors.
+    MSP430APP=0x11;    
     
     CoreID=0;
     DeviceID=0;
index b509ea1..b606edc 100755 (executable)
@@ -26,16 +26,15 @@ if(len(sys.argv)==1):
 client=GoodFETMSP430();
 client.serInit()
 
-#Connect to target
 client.setup();
-#print "setup"
-
-#Identify model number.
 client.start();
 
+if(sys.argv[1]=="starttest"):
+    for foo in range(1,10):
+        client.start();
 if(sys.argv[1]=="info"):
-    print "Model    %08x " % client.MSP430deviceid();
-    print "Core     %04x " % client.MSP430coreid();
+    #print "Model    %08x " % client.MSP430deviceid();
+    #print "Core     %04x " % client.MSP430coreid();
     #print "Identity %04x" % client.MSP430ident();
     print "Identifies as %s (%04x)" % (
         client.MSP430identstr(),