Keil Logo

BL51: RAMSIZE PARAMETER OUT OF RANGE (FOR PHILIPS 89C66X)


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.12

QUESTION

I tried using any one the following Philips chips, 89C660, 89C662, 89C664, and the Linker Control String on the bottom of the "BL51 Locate" tab reads RAMSIZE(512), RAMSIZE(1024), RAMSIZE(2048) respectively.

When I build my program, I get a "Fatal error L228, RAMSIZE parameter out of range."

How do I change the Linker Control String to read RAMSIZE(256)?

ANSWER

This is a problem in µVision and will be addressed in the next release. In the meantime, each individual can correct this problem by performing the steps listed in the RESOLUTION section below

SYMPTOMS

The linker is complaining of "Fatal error L228, RAMSIZE parameter out of range"

CAUSE

The Internal RAMSIZE range for the Philips 89C chips in the device database was wrongly set to (0 - 0x1FF)

RESOLUTION

  1. Click on File -> Device Database in µVision and double click on any one of the Philips 89C chips (660, 662, 664) you are going to use.
  2. Edit the first line to read: CPU=IRAM(0 - 0xFF) IROM(0 - 0x3FFF) CLOCK(33000000) MODP2
  3. Click on Update and then click on OK.
  4. Go to the project window, right click on the already existing target and then choose "Select Device for Target #".
  5. Reselect your device (89C660, 89C662, or 89C664) by clicking once and then clicking OK.

This should fix the problem

Last Reviewed: Monday, June 28, 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.