Hello Anotniio,

I just wanted to tell you that I fixed the problem. I think my compiler was
compiling in some wrong directory but now the problem is fix. I want to
thank you for your help. I was just wondering that since we have 90KB ROM
available then why not move the code to ROM as much as we can and try to
achieve the efficiency. I hope that will help.



On Fri, Mar 22, 2013 at 3:11 PM, Jhon James <[email protected]> wrote:

> Hello TinyOS Community
>
> I am trying to compile PppRouter for z1 motes and getting error below. I
> used the tinyos release code can any one tell what is problem . i attahed
> modify code.
>
>
> Can you please kindly donwload and place it in your tinyos release and try
> to compile it??
>
> I tried both release version and simple tinyos but the ram still
> overflows. I tried the msp430-47 as well which saves only 6 more bytes.
>
>
> Can you try to compile it and see what is the problem?? I think I did all
> the steps but it is still failing.
>
> Please help out. Here is the error
>
>
> /opt/msp430-47/bin/../lib/gcc/msp430/4.7.0/../../../../msp430/bin/ld:
> region `ram' overflowed by 400 bytes
> collect2: error: ld returned 1 exit status
>
> make: *** [exe0] Error 1
>
>
>
> On Thu, Mar 21, 2013 at 8:47 AM, Antonio Linan <[email protected]>wrote:
>
>> No idea, I replicated on my box and as said already in the previous
>> email, it compiled for both msp430-46/47, here's my environment:
>>
>> a-linan@zolertia:~/Desktop/TinyOS/tinyos-github$ git log --oneline
>> 85de51d CC2420X driver fixes
>>
>> a-linan@zolertia:~/Desktop/TinyOS/tinyos-github$ msp430-gcc --version
>> msp430-gcc (GCC) 4.7.0 20120322 (mspgcc dev 20120716)
>>
>>
>> Makefile:
>>
>> COMPONENT=PppRouterC
>> # PFLAGS += -DENABLE_SPI0_DMA
>> # PFLAGS += -DCC2420_DEF_CHANNEL=21
>>
>> CFLAGS += -DMAX_PARENT=1
>> CFLAGS += -DROUTE_TABLE_SZ=3
>>
>> # use rpl
>> PFLAGS += -DRPL_ROUTING -DRPL_STORING_MODE
>> -I$(LOWPAN_ROOT)/tos/lib/net/rpl
>> # PFLAGS += -DRPL_OF_MRHOF
>>
>> # and ppp
>> PFLAGS += -I$(TOSDIR)/lib/ppp
>> PFLAGS += -I$(TOSDIR)/lib/fragpool
>>
>> # this works around fragmentation in the RX buffer pool
>> PFLAGS += -DPPP_HDLC_RX_FRAME_LIMIT=1 -DPPP_HDLC_TX_FRAME_LIMIT=8
>>
>> # if you set this, the stack won't use dhcp to assign addresses -- it
>> # will use this prefix combined with TOS_NODE_ID
>> PFLAGS += -DIN6_PREFIX=\"fec0::\"
>>
>> # derive short address from the dhcp address assignment, if possible
>> PFLAGS += -DBLIP_DERIVE_SHORTADDRS
>>
>> Commented in PppRouterC.nc:
>>
>>
>>   // UDP shell on port 2000
>>   //components UDPShellC;
>>
>>
>>   // prints the routing table
>>   // components RouteCmdC;
>>
>> "make z1 blip" with msp430-47 yields in:
>>
>>
>> compiled PppRouterC to build/z1/main.exe
>> 37350 bytes in ROM
>> 8134 bytes in RAM
>>
>> For msp430-46:
>>
>> compiled PppRouterC to build/z1/main.exe
>> 39572 bytes in ROM
>> 8170 bytes in RAM
>>
>> Regards,
>>
>> --Antonio
>>
>>
>>
>> On Wed, Mar 20, 2013 at 3:16 PM, Jhon James <[email protected]> wrote:
>>
>>> Now the size of the code reduced from 1218 bytes overflow to 436 check
>>> this error
>>>
>>>
>>> /root/top/t2_cur/tinyos-release/tos/lib/ppp/LcpAutomatonP.nc:543:93:
>>> warning: variable ‘in_actions’ set but not used [-Wunused-but-set-variable]
>>> /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:
>>> build/z1/main.exe section `.bss' will not fit in region `ram'
>>> /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region `ram'
>>> overflowed by 436 bytes
>>>
>>> collect2: ld returned 1 exit status
>>> make: *** [exe0] Error 1
>>>
>>>
>>> This can be because of msp430-46 you think??? Now the overflowed by 436
>>>
>>>
>>>
>>> On Wed, Mar 20, 2013 at 2:11 PM, Jhon James <[email protected]>wrote:
>>>
>>>> I can switch to that as well if that is more efficient not a problem.
>>>> Thanks for helping out I will try and will get back to you if it works
>>>> well. Thanks once again
>>>>
>>>>
>>>> On Wed, Mar 20, 2013 at 2:10 PM, Antonio Linan <[email protected]>wrote:
>>>>
>>>>> BTW, I'm using msp430-47, code size is a little smaller than msp430-46
>>>>> but nevertheless it compiles for both.
>>>>>
>>>>> --Antonio
>>>>>
>>>>>
>>>>> On Wed, Mar 20, 2013 at 3:08 PM, Antonio Linan <[email protected]>wrote:
>>>>>
>>>>>> Makefile:
>>>>>> COMPONENT=PppRouterC
>>>>>> # PFLAGS += -DENABLE_SPI0_DMA
>>>>>> # PFLAGS += -DCC2420_DEF_CHANNEL=21
>>>>>>
>>>>>> CFLAGS += -DMAX_PARENT=1
>>>>>> CFLAGS += -DROUTE_TABLE_SZ=3
>>>>>>
>>>>>> Results:
>>>>>>
>>>>>> warning: variable ‘in_actions’ set but not used
>>>>>> [-Wunused-but-set-variable]
>>>>>>     compiled PppRouterC to build/z1/main.exe
>>>>>>            37350 bytes in ROM
>>>>>>             8134 bytes in RAM
>>>>>> msp430-objcopy --output-target=ihex build/z1/main.exe
>>>>>> build/z1/main.ihex
>>>>>>     writing TOS image
>>>>>> a-linan@zolertia:~/Desktop/TinyOS/tinyos-github/apps/PppRouter$
>>>>>>
>>>>>> --Antonio
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 20, 2013 at 2:57 PM, Jhon James <[email protected]>wrote:
>>>>>>
>>>>>>> defined them in makefile and commented the lines as instructed here
>>>>>>> is the error
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:
>>>>>>> build/z1/main.exe section `.bss' will not fit in region `ram'
>>>>>>>  /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: region
>>>>>>> `ram' overflowed by 1218 bytes
>>>>>>>
>>>>>>> collect2: ld returned 1 exit status
>>>>>>> make: *** [exe0] Error 1
>>>>>>>
>>>>>>> Regard's
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Mar 20, 2013 at 1:29 PM, Antonio Linan 
>>>>>>> <[email protected]>wrote:
>>>>>>>
>>>>>>>> Add those defines to the Makefile, if you want to know where are
>>>>>>>> defined by default use something like grep/find.
>>>>>>>>
>>>>>>>> --Antonio
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Mar 20, 2013 at 2:23 PM, Jhon James 
>>>>>>>> <[email protected]>wrote:
>>>>>>>>
>>>>>>>>> Hello Antonio,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> // UDP shell on port 2000// components UDPShellC;
>>>>>>>>>  // prints the routing table// components RouteCmdC;
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> It is not mentioned in which file you need to comment these files.
>>>>>>>>> PppRouterC.nc is the file in which I found these links to comment
>>>>>>>>>
>>>>>>>>> http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0
>>>>>>>>>
>>>>>>>>> You can update that link. Also I want to ask that those defines
>>>>>>>>>
>>>>>>>>> #define MAX_PARENT 1
>>>>>>>>> #define ROUTE_TABLE_SZ 3
>>>>>>>>>
>>>>>>>>> where we have to define them?? I mean in the same PppRouter.nc
>>>>>>>>> file? Moreover
>>>>>>>>>
>>>>>>>>> his is test code not committed to trunk (not will ever be), when
>>>>>>>>> we manage to get a final solution that makes us feel comfortable and 
>>>>>>>>> gets
>>>>>>>>> accepted by the core we will bring these changes to main trunk, at the
>>>>>>>>> moment all the testing can be found r*eferenced here*, and soon
>>>>>>>>> at My GitHub in a test branch
>>>>>>>>>
>>>>>>>>> by 'referenced here' you mean this page (
>>>>>>>>> http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0) or some
>>>>>>>>> other??
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Wed, Mar 20, 2013 at 11:15 AM, Jhon James <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>> > Hello Antonio,
>>>>>>>>> >
>>>>>>>>> > Thanks for the pointer. I just scrolled the page down. and read
>>>>>>>>> > further. I thought that page was quite an old one. That is why I
>>>>>>>>> asked
>>>>>>>>> > whether that implementation is included in the latest release or
>>>>>>>>> not.
>>>>>>>>> > I will change the code and will get back to you if I will need
>>>>>>>>> any
>>>>>>>>> > further help.
>>>>>>>>> >
>>>>>>>>> > Thanks once again.
>>>>>>>>> >
>>>>>>>>> > Regard's
>>>>>>>>> >
>>>>>>>>> > On Wed, Mar 20, 2013 at 11:00 AM, Antonio Linan <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>> >> Examples are self explanatory:
>>>>>>>>> >>
>>>>>>>>> >> make z1 blip install,2 bsl,/dev/ttyUSB1
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> Replace ttyUSB1 for whatever port the mote is assigned.
>>>>>>>>> >>
>>>>>>>>> >> --Antonio
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> On Wed, Mar 20, 2013 at 11:58 AM, Antonio Linan <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>> >>>
>>>>>>>>> >>> Read the wiki, again but carefully, it shows the files you
>>>>>>>>> need to change
>>>>>>>>> >>> for the applications to compile, and the code examples already
>>>>>>>>> points out
>>>>>>>>> >>> how to set the node id on compilation (install,X where X is
>>>>>>>>> the desired ID).
>>>>>>>>> >>>
>>>>>>>>> >>> --Antonio
>>>>>>>>> >>>
>>>>>>>>> >>>
>>>>>>>>> >>> On Wed, Mar 20, 2013 at 11:54 AM, Jhon James <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>> >>>>
>>>>>>>>> >>>> Hello Help Desk, Antonio and Eric,
>>>>>>>>> >>>>
>>>>>>>>> >>>> I was trying to install 6LowPAN Blip implementation on Z1
>>>>>>>>> motes using
>>>>>>>>> >>>> the following link
>>>>>>>>> >>>>
>>>>>>>>> >>>> http://zolertia.sourceforge.net/wiki/index.php/Blip_v2.0
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>> I have the latest release of the TinyOs and the problem that
>>>>>>>>> I am
>>>>>>>>> >>>> currently having is that when I try to install the Ppp_Router
>>>>>>>>> example
>>>>>>>>> >>>> I get the following error
>>>>>>>>> >>>>
>>>>>>>>> >>>>  make z1 blip install,1
>>>>>>>>> >>>>
>>>>>>>>> >>>> /root/top/t2_cur/tinyos-release/tos/lib/ppp/LcpAutomatonP.nc:
>>>>>>>>> In
>>>>>>>>> >>>> function ‘LcpAutomatonP__0__processEventActions_’:
>>>>>>>>> >>>>
>>>>>>>>> /root/top/t2_cur/tinyos-release/tos/lib/ppp/LcpAutomatonP.nc:543:93:
>>>>>>>>> >>>> warning: variable ‘in_actions’ set but not used
>>>>>>>>> >>>> [-Wunused-but-set-variable]
>>>>>>>>> >>>> /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:
>>>>>>>>> >>>> build/z1/main.exe section `.bss' will not fit in region `ram'
>>>>>>>>> >>>> /usr/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld:
>>>>>>>>> region
>>>>>>>>> >>>> `ram' overflowed by 1534 bytes
>>>>>>>>> >>>> collect2: ld returned 1 exit status
>>>>>>>>> >>>> make: *** [exe0] Error 1
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>> Now I believe that the latest tinyos-release does not contain
>>>>>>>>> the
>>>>>>>>> >>>> compressed implementation of the blip for z1 motes. Is that
>>>>>>>>> right???
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>> Also how we know from here that the node id is 1?? I mean I
>>>>>>>>> did not
>>>>>>>>> >>>> burn the node id. The motes are new motes that I recieved
>>>>>>>>> almost a
>>>>>>>>> >>>> month ago. I only burnt the LED blink code just to blink the
>>>>>>>>> LED's and
>>>>>>>>> >>>> they work perfectly okay.
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>> Also I want to ask that when I do
>>>>>>>>> >>>>
>>>>>>>>> >>>> make z1 install
>>>>>>>>> >>>>
>>>>>>>>> >>>> it installs the firmware in ttyUSB0 device and i believe that
>>>>>>>>> MOTECOM
>>>>>>>>> >>>> variable tell which one to program. Now I have a 3 nodes one
>>>>>>>>> is
>>>>>>>>> >>>> ttyUSB0, other is ttyUSB1 and the third is ttyUSB2. What
>>>>>>>>> argument to
>>>>>>>>> >>>> pass in order to access the particular node??
>>>>>>>>> >>>>
>>>>>>>>> >>>>
>>>>>>>>> >>>> Regard's
>>>>>>>>> >>>
>>>>>>>>> >>>
>>>>>>>>> >>>
>>>>>>>>> >>>
>>>>>>>>> >>> --
>>>>>>>>> >>> --
>>>>>>>>> >>> Antonio Liñan Colina
>>>>>>>>> >>> R+D+I Engineer
>>>>>>>>> >>> @: [email protected]
>>>>>>>>> >>> @: [email protected]
>>>>>>>>> >>> ------------------------------
>>>>>>>>> >>> Advancare
>>>>>>>>> >>> T: +34 93 582 02 70
>>>>>>>>> >>> http://www.advancare.com
>>>>>>>>> >>> http://www.zolertia.com
>>>>>>>>> >>> http://zolertia.sourceforge.net
>>>>>>>>> >>> http://webshop.zolertia.com
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >>
>>>>>>>>> >> --
>>>>>>>>> >> --
>>>>>>>>> >> Antonio Liñan Colina
>>>>>>>>> >> R+D+I Engineer
>>>>>>>>> >> @: [email protected]
>>>>>>>>> >> @: [email protected]
>>>>>>>>> >> ------------------------------
>>>>>>>>> >> Advancare
>>>>>>>>> >> T: +34 93 582 02 70
>>>>>>>>> >> http://www.advancare.com
>>>>>>>>> >> http://www.zolertia.com
>>>>>>>>> >> http://zolertia.sourceforge.net
>>>>>>>>> >> http://webshop.zolertia.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Antonio Liñan Colina
>>>>>>>> R+D+I Engineer
>>>>>>>> @: [email protected]
>>>>>>>> @: [email protected]
>>>>>>>> ------------------------------
>>>>>>>> Advancare
>>>>>>>> T: +34 93 582 02 70
>>>>>>>> http://www.advancare.com
>>>>>>>> http://www.zolertia.com
>>>>>>>> http://zolertia.sourceforge.net
>>>>>>>> http://webshop.zolertia.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Antonio Liñan Colina
>>>>>> R+D+I Engineer
>>>>>> @: [email protected]
>>>>>> @: [email protected]
>>>>>> ------------------------------
>>>>>> Advancare
>>>>>> T: +34 93 582 02 70
>>>>>> http://www.advancare.com
>>>>>> http://www.zolertia.com
>>>>>> http://zolertia.sourceforge.net
>>>>>> http://webshop.zolertia.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Antonio Liñan Colina
>>>>> R+D+I Engineer
>>>>> @: [email protected]
>>>>> @: [email protected]
>>>>> ------------------------------
>>>>> Advancare
>>>>> T: +34 93 582 02 70
>>>>> http://www.advancare.com
>>>>> http://www.zolertia.com
>>>>> http://zolertia.sourceforge.net
>>>>> http://webshop.zolertia.com
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> --
>> Antonio Liñan Colina
>> R+D+I Engineer
>> @: [email protected]
>> @: [email protected]
>> ------------------------------
>> Advancare
>> T: +34 93 582 02 70
>> http://www.advancare.com
>> http://www.zolertia.com
>> http://zolertia.sourceforge.net
>> http://webshop.zolertia.com
>>
>
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to