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 without a 'main' function

I'm using the BL51 linker/locator to locate (without code banking using the ROM(SMALL) directive) a piece of code at a specific location using the CODE control. The code I'm trying to locate a piec of code without a main function -- it will be called by a bootloader at a later time. I can locate the code anywhere above 0x4000 without problems. If I try locating the code below 0x4000 (e.g. CODE(0x2000)) the linker ignores the command and locates it at 0x4000 by default. Is there a way to change this?