forum.gifForum - Bug reports - Topic #103

 

Forum - Forum
Bug reports - Bug reports


closed by PPA   2010.03.20   7:21 PM  Topic # 103  Linker Error: Section xxx can not fit the absolute section

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
 

 topic closed  Top
Answer n° 1
--------
2010.02.06 11:07 AM
by PPA

Porting to 64 bits PICs is a piece of cake...

Administrator
166 messages

Join Date 2008.12.21

Location: France, IDF

Hi,

Thanks for this report.

I've been able to reproduce the case; this is definitely a bug in PMP, and it is present since several versions.

There's a bug in ram data reservation code generation in PMP, introduced after using a new allocation scheme.

Sorry, no workaround!

I'm working to make a new version as quick as possible.

Regards,


PMP team leader

Write to PPA   Web site PPA closed by PPA   2010.03.20   7:21 PM  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




Sentence to think about :     
^ Top ^