2010.02.06 03:27 AM by stefanhanoi

visitor
Join Date 2010.01.19 Location: Hanoi, Vietnam |
Hi,
I am testing a unit that contains procedures for my LCD Display.
In the main program,
myString := '1234567'; LCD_WriteString(myString); as well as LCD_WriteString('1234567');
work fine, i.e. can complile, link, and it works.
However, as soon as the string is 8 or more chars long, independent whether passed as variable or as constant, I get a linker error:
Linker Error - section '__DATA_013' can not fit the absolute section. Section '__DATA_013' start=0x00000013, length=0000001c
The error file says: Message[312] <path to>SAP_LCD_DEMO.ASM 210 : Page or Bank selection not needed for this device. No code generated.
It is a PIC16F84
The MPLINK helpfile says about that error: A section which has not been assigned to a memory in the linker command file can not be allocated. Use the -m <mapfile> switch to generate an error map file. The error map will show the sections which were allocated prior to the error. More memory must be made available by adding a CODEPAGE, SHAREBANK, or DATABANK directive, or by removing the PROTECTED attribute, or the number of input sections must be reduced.
I am not sure: Is this a bug in PMP, or am I just too dumb to do it right?
I can send you the sources by eMail, if you like.
Thanks,
Stefan |