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

Locating Code

I wish to install a bootloader in the first sector of internal ROM (starting address 0xc00000 to 0xc01fff) of the XC164.
How can I place other code (e.g. application software) to start at address 0xc02000 (sector 2)

Thanks

Staudinger

Parents Reply Children
  • I have read this ap-note.
    But I don't need the bootloader,
    I need to know, how to locate my program on an different start address (e.g. 0xc020000).
    I don't know how to tell the linker, to link my object-files to this start address

  • I did something similar for this on the XC164. If you're using uVision, go to the L166 Misc page of the target options.

    I guess you want to put the bootloader into the first flash segment. In this case, set the interrupt vector table address to 0xC10000, and reserve addresses 0xC00000 to 0xC01FFF.

    A standard reset will start the bootloader, while an alternate reset starts the application code.