Keil Logo

µVISION: Error: Referred Memory Range '___' is undefined


Information in this knowledgebase article applies to:

  • MDKv5.23 or earlier

SYMPTOM

The following error occurs at beginning of build output:

*** Error: Referred Memory Range 'ROM2' is undefined.

There is no source line included in the error.

CAUSE

An undefined memory range is specified in an options dialog.

RESOLUTION

Check the icons of the source files in the Project window. If there is a black asterisk mark, this indicates a different configuration from the rest of the project. In the Project window, right click on component or file name, and open either "Options for File..." dialog or "Options for Component..." dialog. Review the memory assignments. In a drop-down list, there will be a memory area selected, which is not defined in the target.

In this example, ROM2 is undefined. Memory areas are defined in either the Options for Target => Target tab, or in a scatterfile. Set the memory assignment back to 'default' in the options dialog. Then click OK.

This procedure resolves issue for one file or component. If remaining files or components have memory assignment to undefined areas, the error will be generated one time for each undefined memory range.

STATUS

MDKv5.24 or later reports a new error message which can include a file name, in the following format:

*** Error: 'Source - source_file.c' Memory Assignment 'ROM2' is undefined.

MORE INFORMATION

Last Reviewed: Monday, July 3, 2017


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.