Technical Support

OC51: FATAL ERROR 204 (INVALID INPUT FILE)


Information in this article applies to:

  • C51 Version 5.50a
  • C51 Version 6.12

SYMPTOMS

I'm writing a simple test application and I've enabled code banking (I specified the BANKAREA directive and included the L51_BANK.A51 file in my project). But now, I get the following error from the OC51 program:

*** ERROR 204: INVALID INPUT FILE

What's wrong?

CAUSE

When you create a code banking program, the linker emits a special OMF51 object module that includes information for the common area and for each code bank. When you go through the motions of creating a code banking program, but you don't actually specify any code banks, the linker outputs a regular OMF51 object file.

Then, when you run the OC51 Banked Object File Converter (which expects a banked OMF51 file) it chokes (because the object module doesn't have any code banks).

RESOLUTION

To avoid this error, move at least one function into a code bank or don't specify the BANKAREA directive to the linker.

MORE INFORMATION

  • Refer to BANKAREA in the BL51 User's Guide.
  • Refer to Error 204 in the OC51 User's Guide.

Last Reviewed: Friday, July 15, 2005


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