Ashish Shukla आशीष शुक्ल wrote:
Hi,
I've just received a TI MSP430 eZ430-F2013 evaluation board, and I
wanted to try developing something for it. And, since I don't use
non-free software (except BIOS on my PC), I prefer using
mspgcc. I'm using gcc since past 4-5 years, but never tried building
GCC cross-compiler. I'm running Fedora 7 (amd64). I wanted to build
the complete toolchain myself. So could someone tell me which version
of GCC should I use. On http://mspgcc.sf.net/, GCC v.3.2.3 is
mentioned. So should I use that or later version can be used. I've
grepped through the module "gcc" hosted in CVSROOT of "mspgcc" project
for "2013" and found following occurences:
-- begin output --
gcc/gcc-3.3/gcc/config/msp430/t-msp430: mmcu?msp1=mmcu?msp430x2003
mmcu?msp1=mmcu?msp430x2013 \
gcc/gcc-3.3/gcc/config/msp430/msp430.c: {"msp430x2013", MSP430_ISA_20, 0},
gcc/gcc-3.3/gcc/config/msp430/msp430.h:%{mmcu=msp430x2013:%(cpp_msp1)
-D__MSP430_2013__} \
gcc/gcc-3.3/gcc/config/msp430/msp430.h:%{mmcu=msp430x2013:-m msp430x2013 } \
gcc/gcc-3.3/gcc/config/msp430/msp430.h:%{mmcu=msp430x2013:crt430x2013.o%s} \
gcc/gcc-4.1.1/gcc/config/msp430/t-msp430: mmcu?msp1=mmcu?msp430x2003
mmcu?msp1=mmcu?msp430x2013 \
gcc/gcc-4.1.1/gcc/config/msp430/msp430.c: {"msp430x2013", MSP430_ISA_200, 0},
gcc/gcc-4.1.1/gcc/config/msp430/msp430.h: %{mmcu=msp430x2013:-m msp430A
--defsym __stack=0xffff -Ttext=0xffff -Tdata=0xffff } \
gcc/gcc-4.1.1/gcc/config/msp430/msp430.h: %{mmcu=msp430x2013:-m msp430s2k128 }
\
gcc/gcc-4.1.1/configure:echo "configure:2013: checking whether ${CC-cc} accepts -g"
>&5
-- end output --
which if I'm not mistaken, means GCC 3.2.3 and GCC 4.1.1 supports
MSP430x2013. I tried GCC 4.1.1, but unsuccessful got some errors. So,
shall I go with GCC 3.2.3 or any later version of GCC can be used.
Thanks in advance,
Ashish Shukla
Use GCC 3.2.3 and follow the instructions in the manual. 3.3 and 3.4
gave worse results than 3.2.3 for embedded use. Support was developed,
but abandoned when the results were not good. We want to support the
latest GCC, but that work is incomplete. 3.2.3 may be a little old, but
it does give use good service. As you seem to have realised, the 3.3
directory is actually the one for GCC 3.2.3.
Steve