Hi all,

I just built a tool chain with the MSP430X branch, by following the
README-MAINTER.txt (thanks Matthias!) and the Wiki instructions.
Eveything went well, but when I compile a simple source file (see
below) with the -mmcu=msp430x5437, then I get a compilation error; the
same source file compiles well with another mcu architecture.

//Source file:  main.c
#include <signal.h>
#include <io.h>
int main(void)
{
        volatile unsigned int cont = 0;
        WDTCTL = WDTPW | WDTHOLD;
        while(1){
                cont = 0xFFFF;
                while(cont--);
        }
        return 0;
}
// ----end of source file:  main.c

The command:          msp430-gcc -O2 -g -mmcu=msp430x5437 -o main.o
main.c           gives the following error:

C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s: Assembler messages:
C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s:137: Error: expected symbol name
C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s:138: Error: expected symbol name
C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s:139: Error: expected symbol name
C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s:140: Error: expected symbol name
C:\DOCUME~1\user\IMPOST~1\Temp/cceIovJc.s:141: Error: expected symbol name

while the command:      msp430-gcc -O2 -g -mmcu=msp430x2272 -o main.o
main.c      compiles just fine.

Besides, the assembly temporary file changes everytime and it is
deleted automatically, so I cannot inspect it.
Is there a way to tell him not to use temporarily files or to keep them ?

Is anyone of you working on these MCUs ?
I built binutils-2.18 and update the CVS yesterday, is this ok ?
I have the following patches, is there anyone missing ?
   binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
   binutils-2.17-msp430x24x-msp430x26x.patch
   binutils-2.18-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
   binutils-2.18-430X.patch
   binutils-2.18-msp430x24x-msp430x26x.patch
   binutils-2.19-patch
   binutils-ld_scripts.patch
   gcc-3.2.3-__FUNCTION__.patch
   gcc-3.2.3-cygwin.patch
   gcc-3.2.3-mingw.patch
   gdb-6.8-430X.patch
   insight-6.7.1-64bit.patch
   insight-6.7.1-msp430-20080313.patch
   msp430-gdb-6.8-fix.patch
   msp430-gdb-6.8.patch

Thanks a lot for your help!

Roberto

Reply via email to