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

locate copyright message

I want to put a copyright message into the ROM. How do I make the linker locate it immediately after the interrupt vectors?

Thanx,

Erik

Parents
  • Here is an example of placing the copyright in Main.c.

    code char Copyright[] = "Copyright";
    
    void main( void )
    {
      code char *Dummy = Copyright; //this stops linking warnings
    }
    

    Now tell the linker to locate all global CODE variables from MAIN to 0x100. Do this by adding ?CO?MAIN(0x100) to the OptionsForTarget/Bl51LocateTab/CodeLine.

Reply
  • Here is an example of placing the copyright in Main.c.

    code char Copyright[] = "Copyright";
    
    void main( void )
    {
      code char *Dummy = Copyright; //this stops linking warnings
    }
    

    Now tell the linker to locate all global CODE variables from MAIN to 0x100. Do this by adding ?CO?MAIN(0x100) to the OptionsForTarget/Bl51LocateTab/CodeLine.

Children