µVISION: Error: Referred Memory Range '___' is undefined
Information in this knowledgebase article applies to:
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.
An undefined memory range is specified in an options dialog.
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.
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.
Last Reviewed: Monday, July 3, 2017
of your data.