|
Re: Please help: Memory allocation problem dealing with sections
Quote:
|
Originally Posted by RbtGal1351
Hi,
I'm having a memory allocation problem. (I think.)
I was working with the 2005 RC, but this doesn't work when compiled for the 2006 RC either.
Code:
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Error - section '.idata_autonomous.o' can not fit the section. Section '.idata_autonomous.o' length=0x00000123
Errors : 1
BUILD FAILED: Mon Mar 13 00:43:55 2006
I have a big script of autonomous stuff, but its 8 bytes per, x 34 long, which is 272 bytes.
I have 2000 bytes to use. (according to microchip: http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName =en010319)
The other big memory usage is 64 bytes of look up table for driving.
my guess is for each .o you can only use 256 k. and its in "sections".
Suggestions? Help please!
Thanks so much!
I'd like to use this code for SVR in less than three days...
~Stephanie
|
I don't think you can have any single variable or array over 256 bytes in size, that could be your problem, can you condense the script array at all?
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|