Keil™, An ARM® Company

Technical Support

LX51: WARNING L43 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 setup 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: Tuesday, January 31, 2006


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