ARM Technical Support Knowledge Articles

USING ECRM MODE ON PHILIPS MX2

Applies to: CX51 C Compiler

Answer


Information in this article applies to:


QUESTION

Is the ECRM (Extended Call/Ret Mode) supported by Keil CX51 and the uVision Simulator?

ANSWER

Yes, this new mode is fully supported by the tools. To enable ECRM Mode you need to:

  1. Use the START_MX.A51 file version 1.03 or higher and enable the ECRM setting.
  2. Set Code Rom Size: "Huge: 8MB Program" under Options - Target.
  3. Set Linker Code Packing (max. AJMP/ACALL) under Options - CX51.

The LX51 Linker/Locater inserts RET instead of ERET and optimizes the ECALL instructions to ACALL or LCALL wherever possible.

Note that the ECRM Mode is currently available only on 8xC51MB2/MC2 devices.

SEE ALSO

Article last edited on: 2004-05-03 20:39:17

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential