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

Using c51/a51/bl51 is there a simple way to guarantee that a copyright message will appear in the code memory immediately following the interrupt vectors?

in advance, thanks

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
No data