X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.spiflash;h=dcdc68be9ab4fa486c2143dfb631b67b5dbf6e98;hp=d4450c26d9068a6db9b18e2409945b19fc8c87b3;hb=0a6754712a364a01d149dc518f44b258a3a37cf8;hpb=15750ecb20e3f348c419f0666452534c8b6a0b8e diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index d4450c2..dcdc68b 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -140,15 +140,12 @@ if(sys.argv[1]=="flash"): stop=int(sys.argv[4],16); print "Flashing code from %06x to %06x with %s." % (start,stop,f); + print "FIXME This might fail if the file is of an odd size."; file = open(f, mode='rb') i=start; chars=list(file.read()); - - #N.B., chunksize must be an even fraction of 0x100. - #Increasing above 0x200 doesn't help, 0x100 might be good enough. chunksize=0x100; - #chunksize=0x1000; while i<=stop: bytes=range(0,chunksize);