Keil Logo

C51: Multiple Large Objects in HDATA


Information in this article applies to:

  • C51 All Versions

SYMPTOM

When I declare several large arrays with the "far" type, I get an "error C249: 'FDATA': SEGMENT TOO LARGE", even though no individual object is larger than 64k.

CAUSE

The size restriction on far data doesn't refer to individual objects. No "far" data segment may exceed 64k in size. In this context, a segment means all data in a given memory space, declared in a single source file.

RESOLUTION

You need to make sure the size of any segment doesn't exceed 64k. Sometimes this means you must declare each object in its own file.

MORE INFORMATION


Last Reviewed: Thursday, February 25, 2021


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.