Support for dumping AVR Flash.
[goodfet] / client / GoodFET.py
index 9fcbbab..da652c3 100755 (executable)
@@ -36,6 +36,9 @@ class GoodFET:
             115200,
             parity = serial.PARITY_NONE
             )
+        
+        #Explicitly set RTS
+        self.serialport.setRTS(1);
         #Drop DTR, which is !RST, low to begin the app.
         self.serialport.setDTR(0);
         self.serialport.flushInput()
@@ -55,6 +58,8 @@ class GoodFET:
         self.serialport.write(chr(app));
         self.serialport.write(chr(verb));
         
+        #if data!=None:
+        #    count=len(data); #Initial count ignored.
         
         #print "TX %02x %02x" % (app,verb);
         
@@ -69,6 +74,7 @@ class GoodFET:
                 #print "Converting %02x at %i" % (data[i],i)
                 data[i]=chr(data[i]);
             outstr=''.join(data);
+            #outstr=data;
             self.serialport.write(outstr);
         if not self.besilent:
             self.readcmd();