This is probably not the forum for such a question as Flashmagic deals with ISP (in-system-programming)..Programming from the serial port etc.
Any way... when using IAP - all events - such as interupts, watchdogs etc should be disbaled while IAP is active.
When the interupt occurs all crcitical registers are not saved on the stack (unless you save them) etc...and so, a return from interupt has incorrect register values.
Also IAP may require critical timing of the flash programming parameters and your interupt routine has interupted this timing.
Highly recommend you dont interupt flash programming routines like IAP.
Joe
Any way... when using IAP - all events - such as interupts, watchdogs etc should be disbaled while IAP is active.
When the interupt occurs all crcitical registers are not saved on the stack (unless you save them) etc...and so, a return from interupt has incorrect register values.
Also IAP may require critical timing of the flash programming parameters and your interupt routine has interupted this timing.
Highly recommend you dont interupt flash programming routines like IAP.
Joe