Forums

linker problem

Started by daveandhustler July 21, 2004
hello,

i am new to the embedded systems world and have been working with the
msp430 for a little less than a month now.  my company wants to
implement a TCP/IP stack with the chip.  i have been able to get the
original stack written by andreas to work (well, only sometimes.  i
can ping the server but have problems bringing up the webpage.  i am
using firefox 0.9.1.  i have to refresh constantly and then the
request is processed.  i did notice while sniffing the packets that
firefox makes http 1.1 get requests while easyweb support 1.0.  this,
however, does not seem to be the problem.  is there something else
going on here?).  i have since moved on to the uip code and have
encountered some problems with the linker.  i am using the gcc port
for the 430 which i used to compile and load easyweb.  the msp430 is
the 149ver.  thus far i have removed the tapdev code for compiler
specific reasons along with all of the apps including the httpd.  i
want to be able to have bare functionality that allows me to have a
stack with an ip that i can ping.  the files i am using to accomplish
this are main.c, cs8900a.c, uip.c, uip_arch.c, and uip_arp.c.  the
error i am seeing is the following:

msp430-gcc -mmcu=msp430x149 -g -Os -o yep main.o cs8900a.o uip.o
uip_arch.o uip_arp.o
msp430-ld: section .fini9 [000028da -> 000028db] overlaps section
.data [000028da -> 000028df]
msp430-ld: section .fini0 [000028dc -> 000028e1] overlaps section
.data [000028da -> 000028df]
make: *** [yep] Error 1

i am unclear what the sections .fini9 and .fini0 are used for.  i
viewed the easyweb executable map file using msp430-ld and that did
not help.  i am pretty clueless how to debug my problem using this
method.  hopefully somebody out there might have a solution or be able
to point me in the right direction.  help is greatly appreciated!

chao for now,
aaron 



Beginning Microcontrollers with the MSP430

Just a suggestion ...

Why not leverage the fact that someone else has already done the port,
albei with a different compiler? It's not too hard to modify your
source code to be compatible with mspgcc and CrossWorks ... so
download and install CrossWorks for MSP430, play with their uIP stuff,
and use that to figure out what's wrong with your particular
situation. Or, migrate to CrossWorks.

The point is to use a known good that someone else has already done.

--Andrew 


--- In msp430@msp4..., "daveandhustler" <daveandhustler@y...>
wrote:
> hello,
> 
> i am new to the embedded systems world and have been working with
the
> msp430 for a little less than a month now.  my
company wants to
> implement a TCP/IP stack with the chip.  i have been able to get the
> original stack written by andreas to work (well, only sometimes.  i
> can ping the server but have problems bringing up the webpage.  i am
> using firefox 0.9.1.  i have to refresh constantly and then the
> request is processed.  i did notice while sniffing the packets that
> firefox makes http 1.1 get requests while easyweb support 1.0. 
this,
> however, does not seem to be the problem.  is
there something else
> going on here?).  i have since moved on to the uip code and have
> encountered some problems with the linker.  i am using the gcc port
> for the 430 which i used to compile and load easyweb.  the msp430 is
> the 149ver.  thus far i have removed the tapdev code for compiler
> specific reasons along with all of the apps including the httpd.  i
> want to be able to have bare functionality that allows me to have a
> stack with an ip that i can ping.  the files i am using to
accomplish
> this are main.c, cs8900a.c, uip.c, uip_arch.c, and
uip_arp.c.  the
> error i am seeing is the following:
> 
> msp430-gcc -mmcu=msp430x149 -g -Os -o yep main.o cs8900a.o uip.o
> uip_arch.o uip_arp.o
> msp430-ld: section .fini9 [000028da -> 000028db] overlaps section
> .data [000028da -> 000028df]
> msp430-ld: section .fini0 [000028dc -> 000028e1] overlaps section
> .data [000028da -> 000028df]
> make: *** [yep] Error 1
> 
> i am unclear what the sections .fini9 and .fini0 are used for.  i
> viewed the easyweb executable map file using msp430-ld and that did
> not help.  i am pretty clueless how to debug my problem using this
> method.  hopefully somebody out there might have a solution or be
able
> to point me in the right direction.  help is
greatly appreciated!
> 
> chao for now,
> aaron