Hi Vincent,
The version of gcc I have is:
msp430-gcc -v
Using built-in specs.
Target: msp430
Configured with:
/home/christos/svnwork/mspgcc4/build/gcc-4.4.3-build/../gcc-4.4.3/configure
--prefix=/opt/msp430-gcc-4.4.3 --target=msp430
--enable-languages=c,c++ --with-pkgversion=MSPGCC4_r4-20100210
Thread model: single
gcc version 4.4.3 (MSPGCC4_r4-20100210)
--------------------------
When I compile the PppRouter I got the following:
compiled PppRouterC to build/telosb/main.exe
48690 bytes in ROM
9192 bytes in RAM
msp430-objcopy --output-target=ihex build/telosb/main.exe build/telosb/main.ihex
writing TOS image
I have this GCC compiled for some time now. On another computer when I
tried to use mspgcc 4.4.5 it did not work and I got similar error
messages like yourself.
See if this version of gcc makes the problems go away (gcc version
4.4.3 (MSPGCC4_r4-20100210)).
I hope this helps. Keep us posted on your progress.
Regards,
Christos
On 4 July 2011 16:55, Vincent Gay <[email protected]> wrote:
> Hi Christos,
> I'm also experiencing some difficulties with compiling PppRouter for Telosb.
> How much memory footprint does it take with msp430-gcc 4.4.3 ? Do you see
> any difference when using -O -Os, then only -Os or -O2?
> What version of ncc/nescc have you got?
> I've tried to upgrade from msp430-gcc 3.2.3 to 4.4.5 but I cannot compile
> any BLIP application then. I get plenty of errors like shown below. I'm
> wondering whether this version of gcc requires a more recent version of
> nescc (mine is 1.2.8a).
> In file included from <command-line>:0:
> /tmp/nesccppm2UQ1dO5:1188:1: warning: "RESET_VECTOR" redefined
> /tmp/nesccppm2UQ1dO5:1180:1: warning: this is the location of the previous
> definition
> When staying with gcc 3.2.3, I can compile PppRouter but only uncommenting
> the line about the component UDPShellC in PppRouterC, as suggested in the
> CoAP tutorial. Otherwise, I get an error "region text is full"...
> I'm investigating...
> Cheers
> Vincent
> Le 30 juin 2011 à 16:17, Christos a écrit :
>
> Hi John,
>
> Thank you very much for you suggestion that worked for me. I
> thought I had the -Os option which I did, but I also had -O which
> reduced the optimization (I guess). So by removing -O option from
> support/make/telosb.target I got it working.
>
> Once again thank you very much for your help.
>
> Regards,
> Christos
>
>
> On 30 June 2011 14:30, JeongGil Ko (John) <[email protected]> wrote:
>
> Christos,
>
> Try adding '-Os' to the telosb.extra file in support/make/.
>
> -John
>
> On Jun 30, 2011, at 9:18 AM, Christos wrote:
>
> Hi all,
>
> I am trying to use the PppRouter application on the telosb platform
>
> and it appears that my binary is larger than 48K i.e. I get the
>
> following error
>
> /opt/tinyos-2.x/apps/PppRouter$ make telosb blip
>
> mkdir -p build/telosb
>
> compiling PppRouterC to a telosb binary
>
> ncc -o build/telosb/main.exe -Os -O -DRPL_ROUTING -DRPL_STORING_MODE
>
> -I/opt/tinyos-2.x/tos/lib/net/rpl -I/opt/tinyos-2.x/tos/lib/ppp
>
> -I/opt/tinyos-2.x/tos/lib/fragpool -DIN6_PREFIX=\"fec0::\"
>
> -DCC2420_HW_ACKNOWLEDGEMENTS -DCC2420_HW_ADDRESS_RECOGNITION
>
> -DPACKET_LINK -DTOSH_DATA_LENGTH=90 -I/opt/tinyos-2.x/tos/lib/net/
>
> -I/opt/tinyos-2.x/tos/lib/printf/
>
> -I/opt/tinyos-2.x/support/sdk/c/blip/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/interfaces/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/nwprog/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/shell/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/serial/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/platform/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/icmp/
>
> -I/opt/tinyos-2.x/tos/lib/net/blip/dhcp/
>
> /opt/tinyos-2.x/support/sdk/c/blip/lib6lowpan/iovec.c
>
> /opt/tinyos-2.x/support/sdk/c/blip/lib6lowpan/in_cksum.c
>
> /opt/tinyos-2.x/support/sdk/c/blip/lib6lowpan/ip_malloc.c
>
> /opt/tinyos-2.x/support/sdk/c/blip/lib6lowpan/utility.c
>
> /opt/tinyos-2.x/tos/lib/net/blip/table.c -mdisable-hwmul
>
> -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=telosb
>
> -fnesc-cfile=build/telosb/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22
>
> -DIDENT_APPNAME=\"PppRouterC\" -DIDENT_USERNAME=\"christos\"
>
> -DIDENT_HOSTNAME=\"bdc\" -DIDENT_USERHASH=0xa5ee41dfL
>
> -DIDENT_TIMESTAMP=0x4e0c75d0L -DIDENT_UIDHASH=0x0c6a58d8L
>
> PppRouterC.nc -lm
>
> /opt/tinyos-2.x/tos/platforms/telosa/PlatformHdlcUartC.nc:40:2:
>
> warning: #warning Enabling DMA on UART1RX
>
> /opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning:
>
> #warning "*** LOW POWER COMMUNICATIONS DISABLED ***"
>
> /opt/tinyos-2.x/tos/chips/cc2420/link/PacketLinkC.nc:38:2: warning:
>
> #warning "*** USING PACKET LINK LAYER"
>
> /opt/tinyos-2.x/tos/lib/net/blip/shell/UDPShellP.nc:248: warning: call
>
> via function pointer
>
> /opt/tinyos-2.x/tos/platforms/telosa/PlatformHdlcUartP.nc:181:
>
> warning: `HdlcUart.receivedByte' called asynchronously from
>
> `UsartInterrupts.rxDone'
>
> /opt/msp430-gcc-4.4.3/lib/gcc/msp430/4.4.3/../../../../msp430/bin/ld:
>
> build/telosb/main.exe section `.text' will not fit in region `text'
>
> /opt/msp430-gcc-4.4.3/lib/gcc/msp430/4.4.3/../../../../msp430/bin/ld:
>
> section .vectors loaded at [000000000000ffe0,000000000000ffff]
>
> overlaps section .text loaded at [0000000000004000,000000000001060d]
>
> /opt/msp430-gcc-4.4.3/lib/gcc/msp430/4.4.3/../../../../msp430/bin/ld:
>
> region `text' overflowed by 1794 bytes
>
> collect2: ld returned 1 exit status
>
> make: *** [exe0] Error 1
>
>
> I compiled successfully for the epic platform but I do not own an
>
> epic mote. Initially, I was using mspggc-3.2.3 and subsequently I
>
> upgraded to mspgcc-4.4.3 following the advice on the following post.
>
> http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2011-February/049733.html
>
> My current compiler version is
>
> $ msp430-gcc -v
>
> Using built-in specs.
>
> Target: msp430
>
> Configured with:
>
> /home/christos/svnwork/mspgcc4/build/gcc-4.4.3-build/../gcc-4.4.3/configure
>
> --prefix=/opt/msp430-gcc-4.4.3 --target=msp430
>
> --enable-languages=c,c++ --with-pkgversion=MSPGCC4_r4-20100210
>
> Thread model: single
>
> gcc version 4.4.3 (MSPGCC4_r4-20100210)
>
> I also ensured that I have the -Os optimization level.
>
> My Makefile and blip.extras are intact as in the trunk revision 5657.
>
>
> After I remove the the RPL PFLAGS += -DRPL_ROUTING
>
> -DRPL_STORING_MODE -I$(LOWPAN_ROOT)/tos/lib/net/rpl I can compile and
>
> install the image successfully.
>
> Is anyone else experiencing this issue?
>
>
> Best regards,
>
> Christos
>
> _______________________________________________
>
> Tinyos-help mailing list
>
> [email protected]
>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> ------
>
> JeongGil Ko (John)
>
> Ph.D. Student
>
> Department of Computer Science
>
> Johns Hopkins University
>
> http://www.cs.jhu.edu/~jgko
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help