Follow-up Comment #3, bug #37812 (project avrdude):
> The problem is that in the Arduino flow, the "full chip erase" is
> not happening (since this would erase the bootloader) and instead
> the boot loader erases PAGES during programming.
This is a bug in the Arduino bootloader, and you should report it
accordingly.
Sure, the bootloader is not supposed to actually perform a chip erase
(and a bootloader even has no means to do that at all), but it must
perform the best approximation of a chip erase, that would mean to
erase *all* application pages when being asked to erase the chip.
Everything else is asking for trouble.
Unfortunately, the STK500v2 command doesn't offer any means of erasing
just a page only (for non-Xmega devices), which is basically due to
the fact that there is no "page erase" ISP command. That's the reason
why AVRDUDE cannot perform page erases here.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?37812>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev