|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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).
|
|
#3
|
|||||
|
|||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |