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

Code location

Is there a way to force the tools to place a function at a specific memory location?

I am working on an application updater. The boot/update code starts at 0x0000. The application code would start at 0x8000. Under normal (not updating) circumstances the boot code simply jumps to 0x8000 and life goes on.

In order to debug the boot/update code I'd like to place a dummy function at 0x8000 (flash some LED's, whatever). Can I do this from the bootloader project?

Thanks,

-Martin

Parents
  • Upon reset code execution starts at 0x0000 ... into corrupted code. Bad idea.The first approach guarantees good code (the loader) in low memory at all times.
    Not really. I recall one case where a failure happened just as the bootloader finished (i.e. during the rerauting of the start vector) and BOOM!.

    anyhow, why do you muck with this, there is a plethora of ISp chips around these days.

    Erik

Reply
  • Upon reset code execution starts at 0x0000 ... into corrupted code. Bad idea.The first approach guarantees good code (the loader) in low memory at all times.
    Not really. I recall one case where a failure happened just as the bootloader finished (i.e. during the rerauting of the start vector) and BOOM!.

    anyhow, why do you muck with this, there is a plethora of ISp chips around these days.

    Erik

Children