We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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)
Are you using the correct Linker? I think you need LX51 - not BL51?