projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed synching bug which was introduced by dropping the custom linker scripts.
[goodfet]
/
client
/
goodfet.monitor
diff --git
a/client/goodfet.monitor
b/client/goodfet.monitor
index
6191335
..
67ec3fb
100755
(executable)
--- a/
client/goodfet.monitor
+++ b/
client/goodfet.monitor
@@
-18,6
+18,7
@@
if(len(sys.argv)==1):
print "%s info" % sys.argv[0];
print "%s call 0x$start" % sys.argv[0];
print "%s exec '0x35 0x00 0x..'" % sys.argv[0];
print "%s info" % sys.argv[0];
print "%s call 0x$start" % sys.argv[0];
print "%s exec '0x35 0x00 0x..'" % sys.argv[0];
+ print "%s listapps [full]" % sys.argv[0]
sys.exit();
#Initialize FET and set baud rate
sys.exit();
#Initialize FET and set baud rate
@@
-46,8
+47,11
@@
if(sys.argv[1]=="exec"):
client.execute(code);
if(sys.argv[1]=="info"):
client.execute(code);
if(sys.argv[1]=="info"):
- print "GoodFET with %s MCU" % client.infostring();
- print "Clocked at %s" % client.monitorclocking();
+ client.monitor_info()
+if(sys.argv[1]=="infotest"):
+ for foo in range(0,100):
+ client.monitor_info()
+
if(sys.argv[1]=="clocktest"):
print "GoodFET with %s MCU" % client.infostring();
clocking=client.monitorgetclock();
if(sys.argv[1]=="clocktest"):
print "GoodFET with %s MCU" % client.infostring();
clocking=client.monitorgetclock();
@@
-58,6
+62,9
@@
if(sys.argv[1]=="clocktest"):
client.monitorsetclock(clocking-foo);
print "-0x%04x: %s" % (foo,client.infostring());
client.monitorsetclock(clocking-foo);
print "-0x%04x: %s" % (foo,client.infostring());
+if(sys.argv[1]=="listapps" or sys.argv[1]=="apps"):
+ full = (len(sys.argv) > 2) and (sys.argv[2]=="full")
+ client.monitor_list_apps(full);
if(sys.argv[1]=="ramfill"):
client.monitor_ram_pattern();
if(sys.argv[1]=="ramfill"):
client.monitor_ram_pattern();
@@
-80,7
+87,7
@@
if(sys.argv[1]=="dump"):
h = IntelHex16bit(None);
i=start;
while i<stop:
h = IntelHex16bit(None);
i=start;
while i<stop:
- h[i>>1]=client.peek
word
(i);
+ h[i>>1]=client.peek
16
(i);
if(i%0x100==0):
print "Dumped %04x."%i;
i+=2;
if(i%0x100==0):
print "Dumped %04x."%i;
i+=2;
@@
-118,7
+125,4
@@
if(sys.argv[1]=="verify"):
if(i%0x100==0):
print "%04x" % i;
if(i%0x100==0):
print "%04x" % i;
-if(sys.argv[1]=="whatever"):
- for i in [0x24FF, 0x2500, 0x2502, 0x2504]:
- print "%04x" % client.peekword(i);