".text" is a strange (historical and I don't remember why) reference to code space. Rom/Flash etc. You are overflowing the code space which is 48K. Your previous program 48564 and then you added 100 lines of code and bam!
Are you compiling with the optimizer on? If it is then you will have to rework what your code is doing. eric On Wed, Jun 17, 2009 at 8:51 PM, Xiaohui Liu <[email protected]> wrote: > Hi all, > I came across the following compiling error on telosB: > "msp430-ld: region text is full (build/telosb/main.exe section .text) > msp430-ld: section .vectors [0000ffe0 -> 0000ffff] overlaps section .text > [00004000 -> 00010255] > msp430-ld: build/telosb/main.exe: section .vectors lma 0xffe0 overlaps > previous sections > make: *** [exe0] Error 1" > > After some online search, it seems to be due to program oversize (see > 4.3<http://enl.usc.edu/enl/trunk/tenet/doc/Recompile_Mote_Binary.HOWTO>). > Actually, this program is the same with my previous program except the > addition of around 100 lines of code. My previous program compiles > successfully and generates a result of > "compiled testAppC to build/telosb/main.exe > 48564 bytes in ROM > 5370 bytes in RAM" > > I checked telosB datasheet, which indicates it has RAM of 10 KB. Anybody > has a idea on what's going wrong here? Is my program really too large? If > yes, is there any way to shrink the size of compiled file without changing > the program? I have already tries everything to make it smaller, yet still > encounter the same error. > > BTW, what does ROM mean here? We can download our compiled program into > ROM!!?? > > Your attention is greatly appreciated. > > -Xiaohui > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Eric B. Decker Senior (over 50 :-) Researcher Autonomous Systems Lab Jack Baskin School of Engineering UCSC
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
