X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.spiflash;h=7a187db434ae0c1c0715dcbf921187c2e243a97e;hp=c47c4dc22679022e9fa7ad2ff9fa2c0e13aab758;hb=a07ee5d1ce0e6c0f5e53a04afed88a96b323177a;hpb=fa7c4f1b34ed53c88a678f947eb4b34c6e9807b4 diff --git a/client/goodfet.spiflash b/client/goodfet.spiflash index c47c4dc..7a187db 100755 --- a/client/goodfet.spiflash +++ b/client/goodfet.spiflash @@ -10,7 +10,7 @@ import sys; import binascii; import array; -from GoodFET import GoodFETSPIFlash; +from GoodFETSPI import GoodFETSPIFlash; from intelhex import IntelHex; if(len(sys.argv)==1): @@ -126,13 +126,12 @@ if(sys.argv[1]=="flash"): i=start; chars=list(file.read()); - chunksize=0x80; + chunksize=0xfc; while i<=stop: bytes=range(0,chunksize); for j in range(0,chunksize): bytes[j]=ord(chars[i+j]); - #client.SPIpokebyte(i,ord(chars[i])); client.SPIpokebytes(i,bytes); i+=chunksize;