Relocating code needed for flash update function
I need to implement a flash update functionality on HCS12 (512kByte
Flash). That functionality must relocate part of the existing code in
the flash to RAM and execute itself there (because FLASH gets
overwritten in the process). I understand that I can use the "position
independent code" option to do that, but there appear to be limitations
here when we use Banked or Large memory model.
Are there any samples for this kind of application that you are aware
of? Whitepagers, tutorials, etc?