Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   huh, anyone ever get this compiling error? (http://www.chiefdelphi.com/forums/showthread.php?t=52690)

fallen751 24-01-2007 22:58

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!

Shinigami2057 24-01-2007 23:07

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).

Alan Anderson 24-01-2007 23:14

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.


All times are GMT -5. The time now is 04:05.

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