MSP430 Assembler error message

Help
g-schatz
2007-03-28
2013-03-06
  • g-schatz
    g-schatz
    2007-03-28

    I need to compile source code for msp430xG4618 and an error occurs when "as" (/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/as) process the temporary assembler file created by "cc1". The selected mcu is not supported. Have you any idea about something to fix this problem?

    The toolchain I use seems to be up to date. I get last update from CVS on sourceforge
    (CVSROOT=:pserver:anonymous@mspgcc.cvs.sourceforge.net:/cvsroot/mspgcc)
    --- Error message
    msp430-gcc -mmcu=msp430xG4618  main.c
    Known MCU names:
             msp1
             msp2
             msp430x110
             msp430x112
             msp430x122
             msp430x122
             msp430x1222
             msp430x1122
             msp430x1132
             msp430x123
             msp430x1232
             msp430x133
             msp430x135
             msp430x147
             msp430x148
             msp430x149
             msp430x412
             msp430x413
             msp430x311
             msp430x312
             msp430x313
             msp430x314
             msp430x315
             msp430x323
             msp430x325
             msp430x336
             msp430x337
             msp430x1101
             msp430x1111
             msp430x1121
             msp430x1331
             msp430x1351
             msp430x435
             msp430x436
             msp430x437
             msp430x447
             msp430x448
             msp430x449
             msp430x167
             msp430x168
             msp430x169
             msp430x155
             msp430x156
             msp430x157

    /tmp/ccLPVZHH.s: Assembler messages:
    /tmp/ccLPVZHH.s:2: Fatal error: unknown MCU: msp430xG4618

    --

    When I use a unknown mcu, there is an other error message, but this one seems to be correct!
    -- Error message using option -mmcu
    cc1: MCU msp430xG4 not supported
    Known MCU names:
       msp1
       msp2
       msp430x110
       msp430x112
       msp430x1101
       msp430x1111
       msp430x1121
       msp430x1122
       msp430x1132
       msp430x122
       msp430x123
       msp430x1222
       msp430x1232
       msp430x133
       msp430x135
       msp430x1331
       msp430x1351
       msp430x147
       msp430x148
       msp430x149
       msp430x1471
       msp430x1481
       msp430x1491
       msp430x155
       msp430x156
       msp430x157
       msp430x167
       msp430x168
       msp430x169
       msp430x1610
       msp430x1611
       msp430x1612
       msp430x2001
       msp430x2011
       msp430x2002
       msp430x2012
       msp430x2003
       msp430x2013
       msp430x2101
       msp430x2111
       msp430x2121
       msp430x2131
       msp430x2232
       msp430x2252
       msp430x2272
       msp430x2234
       msp430x2254
       msp430x2274
       msp430x311
       msp430x312
       msp430x313
       msp430x314
       msp430x315
       msp430x323
       msp430x325
       msp430x336
       msp430x337
       msp430x412
       msp430x413
       msp430x415
       msp430x417
       msp430x423
       msp430x425
       msp430x427
       msp430x4250
       msp430x4260
       msp430x4270
       msp430xE423
       msp430xE425
       msp430xE427
       msp430xW423
       msp430xW425
       msp430xW427
       msp430xG437
       msp430xG438
       msp430xG439
       msp430x435
       msp430x436
       msp430x437
       msp430x447
       msp430x448
       msp430x449
       msp430xG4616
       msp430xG4617
       msp430xG4618
       msp430xG4619

     
    • Steven Borley
      Steven Borley
      2008-04-18

      This looks like the same problem I've just had trying to compile for msp430x20x3

      I found there is a patch file (binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch) in the cvs repository. I tried to apply this to  binutils-2.18 but got hunk failures in several locations.  However, it did apply without errors to the source of binutils-2.17

      Download binutils-2.17.tar.bz2 from http://ftp.gnu.org/gnu/binutils/ and extract, and get the patch file from CVS (it's in the binutils module).

      Then..

      $ cd binutils-2.17
      $ patch -p1 < binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
      $ ./configure --target=msp430 --prefix=/usr/local/msp430
      $ make
      $ sudo make install

      I was then able to compile without errors.

      Also, it maybe wise to rebuild msp430-gcc and the libraries (at least the libraries).