Keil Logo

BL51: SETTING THE SIZE OF CODE SPACE


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.00 Beta
  • C51 Version 6.00

QUESTION

Is there a way to get the linker to recognize a maximum size of 4K or 8K for code space?

ANSWER

By default, the linker recognizes that the address space of the CODE memory space is from 0x0000 to 0xFFFF or 64K. You may change the starting and ending address of the CODE space using the linker's CODE directive as follows:

BL51 PROG.OBJ   CODE ( 0 - 0x7FFF )

In µVision, you may open the "Options for Target" window, find the "Eprom" field and type the starting address and the memory size. For example, if you desire 32K for CODE space starting at address zero, you may type 0x0000 as the starting address and 0x8000 for memory size; this results in an address range from 0x0000 to 0x7FFF.

SEE ALSO

Last Reviewed: Thursday, June 17, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.