projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Closer to reliable AVR glitching.
[goodfet]
/
client
/
GoodFETCC.py
diff --git
a/client/GoodFETCC.py
b/client/GoodFETCC.py
index
3f4d1d9
..
a515409
100644
(file)
--- a/
client/GoodFETCC.py
+++ b/
client/GoodFETCC.py
@@
-50,7
+50,7
@@
class GoodFETCC(GoodFET):
#print "Status: %s." % self.CCstatusstr();
#Exit debugger
#print "Status: %s." % self.CCstatusstr();
#Exit debugger
- self.
CC
stop();
+ self.stop();
print "Done.";
def setup(self):
print "Done.";
def setup(self):
@@
-93,6
+93,11
@@
class GoodFETCC(GoodFET):
hi=ord(self.data[0]);
lo=ord(self.data[1]);
return (hi<<8)+lo;
hi=ord(self.data[0]);
lo=ord(self.data[1]);
return (hi<<8)+lo;
+ def CCcmd(self,phrase):
+ self.writecmd(0x30,0x00,len(phrase),phrase);
+ val=ord(self.data[0]);
+ print "Got %02x" % val;
+ return val;
def CCdebuginstr(self,instr):
self.writecmd(0x30,0x88,len(instr),instr);
return ord(self.data[0]);
def CCdebuginstr(self,instr):
self.writecmd(0x30,0x88,len(instr),instr);
return ord(self.data[0]);