X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.spiflash;h=23585a7a57f63083bc1a609b53a8b417677ba84e;hp=354d5025444ee52f790b6377600fc0ab758b4e8f;hb=bdc3f154c21e4cb990d7e795308eca5d1dee2a83;hpb=c6e02600ef0e12eb9a7309755740a23b71a62205 diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index 354d502..23585a7 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -18,7 +18,7 @@ if(len(sys.argv)==1): print "%s info" % sys.argv[0]; print "%s dump $foo.hex [0x$start 0x$stop]" % sys.argv[0]; print "%s erase" % sys.argv[0]; - print "%s write $foo.hex [0x$start 0x$stop]" % sys.argv[0]; + print "%s flash $foo.hex [0x$start 0x$stop]" % sys.argv[0]; print "%s verify $foo.hex [0x$start 0x$stop]" % sys.argv[0]; print "%s peek 0x$start [0x$stop]" % sys.argv[0]; print "%s poke 0x$adr 0x$val" % sys.argv[0]; @@ -26,7 +26,7 @@ if(len(sys.argv)==1): #Initailize FET and set baud rate client=GoodFET(); -client.serInit("/dev/ttyUSB0") +client.serInit() client.SPIsetup(); @@ -77,9 +77,7 @@ if(sys.argv[1]=="dump"): i=start; while i<=stop: data=client.SPIpeekblock(i); - - - if(i%0x100==0): + if(i%0x1000==0): print "Dumped %06x."%i; for j in data: file.write(j);