Keil Logo

LX51: WarningL43 Using SRC Mode with Philips MX


Information in this article applies to:

  • CX51 Version 7

SYMPTOMS

I'm starting with a Philips MX project, and I have configured the toolchain under Project -> Options for Target - Target for Code ROM Size: HUGE: 8MB Program. I generate from all C modules assembler source files (selected in the Properties dialog), but I get the linker warning:

*** WARNING L43: PHILIPS MX: ECRM MODE REQUIRES COMPILER SETTING ROM: HUGE

How can I solve this problem?

CAUSE

You have generated assembler SRC files for all your C modules. The SRC files have no information about the compiler ROM settings, so the linker generates the warning you receive.

RESOLUTION

Add a DUMMY.C module to your project (do not generate an assembler SRC file for it). This module may be empty. What is important is that the CX51 compiler translates it into an .OBJ file. This OBJ file will contain the ROM compiler setting.

You should also consider the following when using ROM HUGE:

  • In huge applications, it is very unlikely that you want to translate all C modules into assembly language before translating them. When you set up a new project, do not start with generating assembler source files, since this is typically not required.
  • The ECRM mode is only available in some devices. For example, the Philips P8xC51MA/MB/MC and the P89C669 do not offer this mode. Check the device datasheet before setting the ECRM mode.
  • ROM HUGE requires the settings Extended Addressing Mode (EAM = 1) and Extended Interrupt Frame (EIFM = 1) in the START_MX.A51 startup code.

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


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