LPC2138 IAP example

Hi all,

Does anyone have a working example demonstrating IAP? I can’t figure out the thumb / thumb-interwork configuration. I’m using the LPC2138 on a custom board and typically have interrupts enabled. The ISR’s must be compiled in ARM mode (that much I do know!). The problem is when I enable thumb-interwork mode (which should enable switching between THUMB / ARM modes , AFAIK, the interrupts (e.g., IRQ driven UARTS) don’t work (and therefore I don’t know if the IAP is working). In ARM-only mode, the IRQs work normally but the IAP call (check part ID) returns garbage. FYI I’m not trying to implement a complete bootloader, I just want to make persistent writes to flash to store configuration / gain settings without adding external storage.

Any guidance / example would be helpful.

Thanks,

Matt