For simplicity's sake, up until this point I have been keeping all of my LCD writing functions and tables in the same file, but now that I am cleaning up my code in its near-polished state, I'm looking to move my tables to a separate file.
I have no problem with all of the basic steps, but since I am using relocatable code generated with the code flag, the linker always puts my tables in the last part of the program memory, which makes the tables work incorrectly (as we all know, there is a 256 line limit).
I've looked at the sample code, and I see that they've specified their "lcd.asm" file with the directive code org 0x10, which works when I compile it. However, when I add this location specification into my projects, I get the following error message:
MPLINK 4.38, Linker Copyright (c) 1998-2010 Microchip Technology Inc.
Error - section '.code' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1
LINK STEP FAILED
From what I can understand from this error, it seems to be telling me that I cannot use the code directive in more than once file. However, I have used that directive in five-six files for the entire duration of this project (without the org specification).
In addition, I have tried simply moving my code by using org 0x20 in the new tables file, but that also generates the same error message.
Has anyone experienced this problem? Any ideas would be appreciated. I can keep all my tables in the same file as my LCD functions, but I'd like to move them to their own separate file for readability purposes.