Rewriting the glitching code for the GoodFET24.
[goodfet] / client / GoodFETMSP430.py
index 0ef833c..df6f20e 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;
@@ -199,7 +201,8 @@ class GoodFETMSP430(GoodFET):
         
         print "Tests complete, erasing."
         self.MSP430masserase();
-        
+    def erase(self):
+        self.MSP430masserase();
     def MSP430masserase(self):
         """Erase MSP430 flash memory."""
         self.writecmd(self.MSP430APP,0xE3,0,None);