I have a bootloader routine that once I call it, I'll never return (instead we'll go thru a watchdog reset once flash has been reloaded).
The problem is that I am very code space limited and want to lock down the bootloader into less space by using idata space instead of xdata for the dozen variables I need in it. But I can't waste that much valuable IDATA space on a routine that only gets called a few times in the lifetime of the product.
I've tried adding the follow to the LX51 MISC controls but I don't see that the overlay is working. Seems like it's still reserving the addresses just for this routine. OVERLAY(?PR?ApplicationPoll? ~ ?PR?bootloader?)
Is there a listing or something that shows the call tree and variable overlays?
ApplicationPoll calls Bootloader.
and you will never load the twain togther
Erik
PS if your (non-boot) loader does not allow this (e.g. earses all flash before any load) get another