Atmel JEDEC info for SPI Flash.
[goodfet] / client / goodfet.spiflash
index c47c4dc..1005617 100755 (executable)
@@ -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,14 @@ if(sys.argv[1]=="flash"):
 
     i=start;
     chars=list(file.read());
+    
+    #N.B., chunksize must be an even fraction of 0x100.
     chunksize=0x80;
     
     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;