[Tinyos-help] Compilation Error: section vectors overlap

Eric Decker cire831 at gmail.com
Thu Jun 18 21:27:13 PDT 2009


"verbose" was in quotes so that you should use it verbatum.

so try "make verbose telosb".

Then look for the like that starts with "gcc"

you can see what targets are supported by the following:

"make help" and "make telosb help"


If this is a standard unmodified copy of the t2 tree then when you do "make
telosb"
it will by default build an optimized image.

In other words you are out of code space and have to figure something
different
to get your code to squeeze in.

eric

On Thu, Jun 18, 2009 at 9:18 PM, <whulxh at gmail.com> wrote:

> I tried "make telosb -v" and "make -v telosb", but no addtional information
> crops up. Any suggestion?
>
> -Xiaohui
>
> On Jun 18, 2009 9:28pm, Eric Decker <cire831 at gmail.com> wrote:
> > add "verbose" to your make line and see what options are being fed to gcc
> >
> > eric
> >
> > On Thu, Jun 18, 2009 at 12:59 PM, whulxh at gmail.com> wrote:
> >
> > How do I check whether the optimizer is enabled or not? If not, how can I
> turn it on?
> > Thanks.
> >
> >
> > -Xiaohui
> >
> > On Jun 18, 2009 1:33am, Eric Decker cire831 at gmail.com> wrote:
> > > ".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 whulxh at gmail.com> 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). 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
> > >
> > > Tinyos-help at millennium.berkeley.edu
> >
> > >
> > >
> 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
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Eric B. Decker
> > Senior (over 50 :-) Researcher
> > Autonomous Systems Lab
> > Jack Baskin School of Engineering
> > UCSC
> >
> >




-- 
Eric B. Decker
Senior (over 50 :-) Researcher
Autonomous Systems Lab
Jack Baskin School of Engineering
UCSC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090618/4f8ff718/attachment.htm 


More information about the Tinyos-help mailing list