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);