Page 1 of 1

can not fit the section problem

PostPosted: Mon Jun 11, 2007 6:38 am
by Nandee
Hi!

I'm using mcc18v3.10 + MPLAB7.60 + salvo3.2.3LE and I always get
"Error - section '.tmpdata' can not fit the section. Section '.tmpdata' length=0x00000012" type messages.
If I read the .map file I see that OSVars uses 68 bytes of access RAM and .tmpdata another 22. A total of 90 while there's only 95 in the PIC.
My question is: Is it possible to relocate OSVars or what should I modify to get rid of this message?
Thanks in advance!

Nandee


Re: can not fit the section problem

PostPosted: Mon Jun 11, 2007 6:54 am
by aek
You can place the Salvo objects in banked RAM by using e.g. slc18sfa.lib (with the appropriate salvocfg.h entires) -- that will get the Salvo objects out of near/access RAM, which is causing you those problems. See http://www.pumpkininc.com/content/doc/manual/rm-mcc18.pdf.

If you end up with a very large number of tasks and events, then you need to modify your linker file to accommodate arrays greater than 256 bytes -- see Microchip's docs or their forum for that.

------------------


Re: can not fit the section problem

PostPosted: Mon Jun 11, 2007 7:36 am
by Nandee
God bless You AEK helping a blind man

Thanks!