Pumpkin, Inc.

Pumpkin User Forums

can not fit the section problem

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

can not fit the section problem

Postby Nandee » Mon Jun 11, 2007 6:38 am

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

Nandee
 
Posts: 4
Joined: Thu May 31, 2007 11:00 pm
Location: Budapest, Hungary

Re: can not fit the section problem

Postby aek » Mon Jun 11, 2007 6:54 am

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.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: can not fit the section problem

Postby Nandee » Mon Jun 11, 2007 7:36 am

God bless You AEK helping a blind man

Thanks!

Nandee
 
Posts: 4
Joined: Thu May 31, 2007 11:00 pm
Location: Budapest, Hungary


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron