Go to Post To ANY Robowrangler students reading this thread: If any of you ask me about the game hint, at any time, you will be assigned 4 hours of shop cleaning duty during week 1. No exceptions. - JVN [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 24-01-2007, 22:58
fallen751 fallen751 is offline
Registered User
FRC #2052
 
Join Date: Jan 2007
Location: Minnesota
Posts: 17
fallen751 is an unknown quantity at this point
huh, anyone ever get this compiling error?

I was wondering if anyone has ever recieved this compiling error, and if they have - what does it mean?!

MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - section '.idata_user_routines.o' can not fit the section. Section '.idata_user_routines.o' length=0x000001fe
Errors : 1

one of the only things I added before I got this error was a single dimensional array 255 long. any help would be great!
  #2   Spotlight this post!  
Unread 24-01-2007, 23:07
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: huh, anyone ever get this compiling error?

The PIC18F's memory is divided into banks by the linker, which by default are 256 bytes in length for each one. By allocating an array that large on the stack, along with other declarations, you're likely overrunning one of the banks. You might want to try working with a smaller buffer, or editing the 18f8722.lkr linker script to make the data banks larger (be careful when you do that).
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
  #3   Spotlight this post!  
Unread 24-01-2007, 23:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: huh, anyone ever get this compiling error?

If this large array of yours is a bunch of constants that are determined strictly at compile time, you can place it in program memory instead of data memory by adding the rom and const keywords to its definition.
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
Error when compiling paulcd2000 Programming 2 21-01-2007 14:05
Anyone Ever Heard of This? Luckyfish05 Career 5 16-04-2006 15:05
Error in Compiling the Camera Code (B&W Version) VetteSlick Programming 7 20-01-2006 20:50
How big will FIRST ever get? Raul General Forum 41 26-10-2004 10:45
Anyone think that anyone will get near 1000pts @ Nat's archiver 2001 22 24-06-2002 02:50


All times are GMT -5. The time now is 23:51.

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