The app note for IAP calls (PDF), at least the assembly language part, is wrong. It may be a typo, where it says R0-R2 it might mean R0-R12. In any case, R3 was being overwritten when I made the call to IAP_ENTRY and it was causing my self-extending program to overwrite the wrong part of flash.
last updated 2012-11-19 12:46:18. served from tektonic.jcomeau.com