projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SPI Flash dumping.
[goodfet]
/
client
/
goodfet.spiflash
diff --git
a/client/goodfet.spiflash
b/client/goodfet.spiflash
index
ef72c28
..
7056968
100755
(executable)
--- a/
client/goodfet.spiflash
+++ b/
client/goodfet.spiflash
@@
-69,10
+69,15
@@
if(sys.argv[1]=="dump"):
h = IntelHex(None);
i=start;
while i<=stop:
h = IntelHex(None);
i=start;
while i<=stop:
- h[i>>1]=client.SPIpeek(i);
+ data=client.SPIpeekblock(i);
+
+
if(i%0x100==0):
print "Dumped %04x."%i;
if(i%0x100==0):
print "Dumped %04x."%i;
- i+=1;
+ for j in data:
+ h[i]=ord(j);
+ #print "*%08x=%02x" % (i,ord(j));
+ i+=1;
h.write_hex_file(f);
if(sys.argv[1]=="erase"):
h.write_hex_file(f);
if(sys.argv[1]=="erase"):