As Joerg Wunsch wrote:

> Follow-up Comment #2:
> 
> It turned out when using -U flash:w:filename, the address 
> argument passed to stk600_xprog_memtype() was wrong, so the 
> page erase attempted to erase a boot page when it was about 
> to erase an application page.
> 
> Using plain -U filename was not affected, as it is a shorthand 
> for -U application:w:filename on Xmega devices, so the 
> appropriate page erase type could always be chosen.
> 
> Fixed in SVN r1188.

Note that the problems with TPI on USBasp must be different, and are
probably worth a separate bug report.  Page erase is only supported
for Xmega devices, and only iff the respective programmer has a method
for it (USBasp doesn't).
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to