projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Primitive code for auditing the strings table entries.
[goodfet]
/
client
/
goodfet.msp430
diff --git
a/client/goodfet.msp430
b/client/goodfet.msp430
index
e60733d
..
b606edc
100755
(executable)
--- a/
client/goodfet.msp430
+++ b/
client/goodfet.msp430
@@
-26,13
+26,12
@@
if(len(sys.argv)==1):
client=GoodFETMSP430();
client.serInit()
client=GoodFETMSP430();
client.serInit()
-#Connect to target
client.setup();
client.setup();
-#print "setup"
-
-#Identify model number.
client.start();
client.start();
+if(sys.argv[1]=="starttest"):
+ for foo in range(1,10):
+ client.start();
if(sys.argv[1]=="info"):
#print "Model %08x " % client.MSP430deviceid();
#print "Core %04x " % client.MSP430coreid();
if(sys.argv[1]=="info"):
#print "Model %08x " % client.MSP430deviceid();
#print "Core %04x " % client.MSP430coreid();
@@
-89,12
+88,13
@@
if(sys.argv[1]=="selftest"):
print "Test not run. Try again.";
exit(0);
print "Test not run. Try again.";
exit(0);
- for i in range(0x3020,0x3030):
- ret=client.peek
8
(i);
+ for i in range(0x3020,0x3030
,2
):
+ ret=client.peek
16
(i);
if ret!=0:
errors=errors+1;
print "Failure at 0x%04x, returned %02xh." % (i,ret);
if ret!=0:
errors=errors+1;
print "Failure at 0x%04x, returned %02xh." % (i,ret);
- if ret==0:
+
+ if errors==0:
print "Test succeeded. Board is ready to ship."
else:
print "Test failed. Is it soldered correctly?"
print "Test succeeded. Board is ready to ship."
else:
print "Test failed. Is it soldered correctly?"