Keil™, An ARM® Company

Technical Support

CX51: USING ECRM MODE ON PHILIPS MX2


Information in this article applies to:

  • C51 Version 7.11 or higher

QUESTION

Is the ECRM (Extended Call/Ret Mode) supported by Keil CX51 and the µVision 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

Last Reviewed: Monday, May 03, 2004


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