Keil Logo

A251: Macro Assembly Code Problems

Information in this article applies to:

  • C251 Version 2.14


Assembly code compiles in one location but not another. Specifically, for macro definitions like the following:

%DEFINE(HEAP)           (0h)

a syntax error is generated.


The error generates because MPL (Macro Programming Language) is not selected as the default macro language.


Use the MPL directive on the assembler command line. In µVision, select the MPL option from the Input Tab of the A251 Assembler Options dialog box.


  • Refer to MPL in the Ax51 User's Guide.

Last Reviewed: Wednesday, September 21, 2016

Did this article provide the answer you needed?
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.