Go to Post I'm definitely not advocating PVC tanks. I'm just saying that if you're going to be an idiot, please be slightly less of an idiot. - FourPenguins [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 27-10-2004, 19:56
UrsaMNet's Avatar
UrsaMNet UrsaMNet is offline
Eats Robots for Breakfast
AKA: Joe DeBlasio
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Portland, Oregon
Posts: 13
UrsaMNet is on a distinguished road
Send a message via AIM to UrsaMNet
Confusing Compiler Error

I'm sure this is simply due to inexperience, but I'm stuck!


Quote:
MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - section '.udata_user_routines.o' can not fit the section. Section '.udata_user_routines.o' length=0x00001f4e
Errors : 1

BUILD FAILED: Wed Oct 27 16:48:17 2004
What is wrong here? This isn't from a specific line of code (no line number). Is this the error received when you exceed your memory allocation?

Thank you!
  #2   Spotlight this post!  
Unread 27-10-2004, 20:11
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: Confusing Compiler Error

As far as I can tell from the C18 manual available from microchip, you are correct, you have exceeded the allowable size for the udata section which stores "udata – contains statically allocated uninitialized user variables." (Too many static (includes global) uninitialized (not given a value on declaration) variables in your user_routines.c/h files?). Read section 2.9.1 for more information about sections.
  #3   Spotlight this post!  
Unread 28-10-2004, 14:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,856
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: Confusing Compiler Error

I'll backup Max on this one.

Although, it isn't due to your using up all of the available data space. The common reason for this (note the “.udata”) is that a data block is limited to 256 bytes. The total for global variables declared within a single MPLAB project file (e.g., user_routines.c/.h) cannot exceed 256 bytes. Use of “static” not withstanding.
It's a byproduct of how the linker allocates the available 256 byte blocks of data space.

P.S. Care to test what the declaration limit is per routine within a project file?
It's not 256.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-10-2004 at 18:12. Reason: Added a quiz
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and Wiki Error Venkatesh Website Design/Showcase 2 24-07-2004 15:51
Error in Visual C++ Ashley Weed Programming 15 06-05-2004 14:53
Strange 16 bit MS-DOS subsystem error Crazy_Ed Programming 6 18-03-2004 14:31
strange error Anthony Kesich Programming 2 25-02-2004 18:55
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43


All times are GMT -5. The time now is 00:24.

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