This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Overlay idata for a bootloader

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.

Parents Reply Children
No data