URL:
  <http://savannah.nongnu.org/bugs/?37812>

                 Summary: STK500V2 not programming "blank" pages when not
erasing flash (-D) 
                 Project: AVR Downloader/UploaDEr
            Submitted by: simonls
            Submitted on: Sun 25 Nov 2012 08:57:46 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: simonls
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I tried to debug a flash issue by "erasing" the Flash via programming it full
of FF's.  In the Mega2560/stk500v2 world, the "chip erase" is skipped and
pages are erased as they are programmed.  However AVRDUDE appears to skip
programming pages that are full of FFs.  

I think the culprit is the stk500v2_is_page_empty which perhaps should return
0 always if the "-D" flag is given?  Although I can understand wanting the
efficiency of not programming "blank" data, it seems even worse to end up with
a Flash that doesn't match the obj file.  

I imagine this could be a problem for anyone that has a dataset including 256
bytes of FF (which maybe now more likely in the 128/256KB Mega devices) 





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?37812>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to