Keil™, An ARM® Company

Technical Support

BL51: USING WILDCARDS IN SEGMENT NAMES


Information in this article applies to:

  • C51 Version 6.01

QUESTION

Is there a way to use wildcards in the CODE and XDATA directives in the BL51 linker?

ANSWER

Yes. In C51 V6.01, wildcard support was added to BL51 for the segment location directives (CODE, XDATA, DATA, and so on). For example:

In the µVision IDE, go to Project -> 'Options for Target' -> 'BL51 Misc', and in the 'Misc controls' section, enter:

CODE (?pr?*?myfile (0x100))

Or if using a make file, enter this command:

BL51 myfile.obj CODE (?pr?*?myfile (0x100))

These commands locate all program segments (functions) found in the myfile.obj OMF file starting at address 0100h.

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Wednesday, November 17, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure