projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring, beginning AVR application.
[goodfet]
/
client
/
goodfet.msp430
diff --git
a/client/goodfet.msp430
b/client/goodfet.msp430
index
9745a5a
..
f616fba
100755
(executable)
--- a/
client/goodfet.msp430
+++ b/
client/goodfet.msp430
@@
-27,6
+27,7
@@
client.MSP430setup();
#Identify model number.
client.MSP430start();
#Identify model number.
client.MSP430start();
+client.MSP430haltcpu();
#print "started"
if(sys.argv[1]=="info"):
#print "started"
if(sys.argv[1]=="info"):
@@
-52,7
+53,7
@@
if(sys.argv[1]=="dump"):
h = IntelHex(None);
i=start;
while i<=stop:
h = IntelHex(None);
i=start;
while i<=stop:
- data=client.MSP430peekblock(i
,0x20
);
+ data=client.MSP430peekblock(i);
print "Dumped %06x."%i;
for j in data:
if i<=stop: h[i]=ord(j);
print "Dumped %06x."%i;
for j in data:
if i<=stop: h[i]=ord(j);
@@
-77,11
+78,13
@@
if(sys.argv[1]=="flash"):
for i in h._buf.keys():
#print "%04x: %04x"%(i,h[i>>1]);
if(i>=start and i<stop and i&1==0):
for i in h._buf.keys():
#print "%04x: %04x"%(i,h[i>>1]);
if(i>=start and i<stop and i&1==0):
- client.MSP430writeflash(i,h[i>>1]);
+ val=h[i>>1];
+ val2=client.MSP430pokeflash(i,val);
+ if(val!=val2):
+ print "Write error at %04x, %04x!=%04x." %(
+ i, val, val2);
if(i%0x100==0):
print "%04x" % i;
if(i%0x100==0):
print "%04x" % i;
-if(sys.argv[1]=="flashtest"):
- client.MSP430flashtest();
if(sys.argv[1]=="verify"):
f=sys.argv[2];
start=0;
if(sys.argv[1]=="verify"):
f=sys.argv[2];
start=0;