Keil Logo

LX51: Option 'LAST' in 'SEGMENTS' directive does not work in code bank

Information in this knowledgebase article applies to:

  • PK51 version 9.52
  • LX51 version


When the option LAST is used in a SEGMENTS directive for a code bank, it is ignored by LX51 version which is part of PK51 version 9.52. This is often used in example projects for Sigma Design devices.


This problem has been introduced with PK51 version 9.52.


This problem is fixed with LX51 linker version which is attached to this knowledgebase article. Please download and copy the content of the ZIP file to your tool chain BIN folder (default: C:\Keil\C51\BIN) and replace the existing file.

This linker patch will not be necessary for PK51 versions later than 9.52!


  • Refer to SEGMENTS in the LX51 User's Guide.


Request the files attached to this knowledgebase article.

Last Reviewed: Friday, January 10, 2014

Did this article provide the answer you needed?
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.