This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error L220: Invalid Input Module

I am using an Atmel 80C32X2 using Keil 8051 compiler and LX51 linker. I am using both CODE and RAM banking. The banks are mapped as 32K blocks. I use a lot of data that requires to be held in the code space to allow default values to be loaded into RAM. This data is seldolmly used so I decided to put this is the HCONST data space in a code bank. The trouble is that as soon as I try to access this data the linker considers the file corrupt and generates the L220 error. Any help would be appreciated. The type of access is of the form: t_time[i] = t_time_rtc_def[i];
t_time is xdata, t_time_rtc_def is in code bank (far const char t_time_rtc_def[6]). The linker is defined to put HCONST as follows: HCONST (C:0x048000-C:0x04FFFF)

0