I was wondering if anyone has ever recieved this compiling error, and if they have - what does it mean?!
MPLINK 3.90, Linker
Copyright © 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!
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).
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.