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

LX51 and code offset

I am using the c8051F126 from Cygnal.

Before reaching the 64Kb size I was using the BL51 with "Code Range" option set to 0x1000-0xFFFF (my code start at 0x1000).

Now I would like to use LX51 (and bank switching) but I am unable to find where signal the linker to place code starting from 0x1000.

Which is the directive to tell the linker place the code starting from 0x1000 ? Where to place the directive in the LX51 tab ?

Parents
  • If you check the "Use Memory Layout From Target Dialog" box, uVision, well, uses the memory layout from the target dialog, and automatically adds some directives in the "C classes" section of the dialog. If you'd prefer to control it manually, see the CLASSES and SEGMENTS directives in the manual.

Reply
  • If you check the "Use Memory Layout From Target Dialog" box, uVision, well, uses the memory layout from the target dialog, and automatically adds some directives in the "C classes" section of the dialog. If you'd prefer to control it manually, see the CLASSES and SEGMENTS directives in the manual.

Children
No data