Go to Post Public Service Announcement: Pressing the spacebar when the robot is enabled isn't nearly as funny the forty-second time. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2005, 20:49
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Linking Errors: "section '????' can not fit the section. ..."

I keep on getting an error when ever I compile.
Quote:
...
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - section '.code_fxd3232u.o' can not fit the section. Section '{SECTION}' length=0x00000048
Errors : 1
{SECTION} has been different things at various times:
  • ASM_LIB
  • .code_fxd3232u.o
  • A few others I can't remember currently...

The current section is .code_fxd3232u.o, but that's a math library I've never even touched! (.\mcc18\src\traditional\math\fxd3232u.c, which is "Unsigned Integer Division: 32-bit by 32-bit") All I know is that for those that I checked, they were all really short routines with inline ASM that I hadn't messed with. If I turn off DDT, it still doesn't work.
  #2   Spotlight this post!  
Unread 16-01-2005, 21:19
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,828
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Linking Errors: "section '????' can not fit the section. ..."

That's usually what you see when you overflow your Program Space. You run out of space and it can't fit in some of the later stuff like the libraries.
Check your .map file. The maximum you can get is about 90% of total program space.

For a quick test you can turn on the optimizers if you haven't already and it should fit in (for now anyways).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 16-01-2005 at 21:24.
  #3   Spotlight this post!  
Unread 16-01-2005, 21:30
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Linking Errors: "section '????' can not fit the section. ..."

Yeah, that's it.

All the stuff that fits goes to 7FF0h. With the next section, it goes to 8038h (The PIC18F8520 has 8000h bytes of program memory).

So I guess the next step is to figure out how to cut down on space. (The libraries are so freakin' huge!) My biggest file is PID.c, at 1334h. Fun.
  #4   Spotlight this post!  
Unread 16-01-2005, 21:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,828
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Linking Errors: "section '????' can not fit the section. ..."

Quote:
Originally Posted by Astronouth7303
So I guess the next step is to figure out how to cut down on space. (The libraries are so freakin' huge!) My biggest file is PID.c, at 1334h. Fun.
That's why the thread on how easy everything was now made me laugh.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 16:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi