Bytes on page boundaries were corrupted.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 1 Feb 2010 07:47:41 +0000 (07:47 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Mon, 1 Feb 2010 07:47:41 +0000 (07:47 +0000)
Chipcon only.

git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@295 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/goodfet.cc

index 52eb1dd..19a0b13 100755 (executable)
@@ -150,13 +150,10 @@ if(sys.argv[1]=="flash"):
      
      bcount = 0;
      
-     print "Wiping Flash."
-     #Wipe all of flash.
-     #client.CCchiperase();
      #Wipe the RAM buffer for the next flash page.
      client.CCeraseflashbuffer();
      for i in h._buf.keys():
-         while(i>page+pagelen):
+         while(i>=page+pagelen):
              if bcount>0:
                  client.CCflashpage(page);
                  #client.CCeraseflashbuffer();