projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Flushing on DEBUG messages.
[goodfet]
/
client
/
GoodFETAVR.py
diff --git
a/client/GoodFETAVR.py
b/client/GoodFETAVR.py
index
ee5b180
..
f480017
100644
(file)
--- a/
client/GoodFETAVR.py
+++ b/
client/GoodFETAVR.py
@@
-11,6
+11,7
@@
from GoodFET import GoodFET;
class GoodFETAVR(GoodFET):
AVRAPP=0x32;
class GoodFETAVR(GoodFET):
AVRAPP=0x32;
+ APP=AVRAPP;
AVRVendors={0x1E: "Atmel",
0x00: "Locked",
};
AVRVendors={0x1E: "Atmel",
0x00: "Locked",
};
@@
-54,7
+55,7
@@
class GoodFETAVR(GoodFET):
};
def setup(self):
};
def setup(self):
- """Move the FET into the
SPI
application."""
+ """Move the FET into the
AVR
application."""
self.writecmd(self.AVRAPP,0x10,0,self.data); #SPI/SETUP
def trans(self,data):
self.writecmd(self.AVRAPP,0x10,0,self.data); #SPI/SETUP
def trans(self,data):
@@
-67,6
+68,15
@@
class GoodFETAVR(GoodFET):
def start(self):
"""Start the connection."""
self.writecmd(self.AVRAPP,0x20,0,None);
def start(self):
"""Start the connection."""
self.writecmd(self.AVRAPP,0x20,0,None);
+ def forcestart(self):
+ """Forcibly start a connection."""
+
+ for i in range(0x880,0xfff):
+ #self.glitchVoltages(0x880, i);
+ self.start();
+ bits=self.lockbits();
+ print "At %04x, Lockbits: %02x" % (i,bits);
+ if(bits==0xFF): return;
def erase(self):
"""Erase the target chip."""
self.writecmd(self.AVRAPP,0xF0,0,None);
def erase(self):
"""Erase the target chip."""
self.writecmd(self.AVRAPP,0xF0,0,None);