X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.monitor;h=bbed7930d97730a2d2a6a29cea0a863874d611e2;hp=ee5a97f54d76565731477b1d5030cfca6159a9c8;hb=5ee19fee9dc2095ccb67fc2a86c53799ae47b403;hpb=684729489c6d369f56a529645b980a094671bc08 diff --git a/client/goodfet.monitor b/client/goodfet.monitor index ee5a97f..bbed793 100755 --- a/client/goodfet.monitor +++ b/client/goodfet.monitor @@ -20,9 +20,10 @@ if(len(sys.argv)==1): print "%s exec '0x35 0x00 0x..'" % sys.argv[0]; sys.exit(); -#Initailize FET and set baud rate +#Initialize FET and set baud rate client=GoodFET(); client.serInit() +#client.verbose=1; if(sys.argv[1]=="on"): client.dir(0xFF); @@ -30,6 +31,9 @@ if(sys.argv[1]=="on"): if(sys.argv[1]=="off"): client.out(0x00); +if(sys.argv[1]=="glitchtest"): + client.writecmd(client.GLITCHAPP,0x20,0,None); + if(sys.argv[1]=="call"): adr=int(sys.argv[2],16); print "Calling %04x" % adr; @@ -42,9 +46,8 @@ if(sys.argv[1]=="exec"): client.execute(code); if(sys.argv[1]=="info"): - a=client.peekbyte(0xff0); - b=client.peekbyte(0xff1); - print "GoodFET with %02x%02x MCU" % (a,b); + print "GoodFET with %s MCU" % client.infostring(); + print "Clocked at %s" % client.monitorclocking(); if(sys.argv[1]=="ramfill"): client.monitor_ram_pattern(); if(sys.argv[1]=="ramdepth"):