Default JEDEC entry for M25P80 on Telos B.
[goodfet] / client / goodfet.spiflash
index d4450c2..dcdc68b 100755 (executable)
@@ -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);