Hi,

The 1222 and 1232 have only been half-added to the compiler. I think this diff completes the addition:

diff -u5 msp430-old/msp430.h msp430/msp430.h
--- msp430-old/msp430.h Thu Sep 12 23:59:33 2002
+++ msp430/msp430.h     Sat Sep 14 02:03:39 2002
@@ -2904,11 +2904,13 @@
 %{mmcu=msp430x448:%(cpp_msp2) -D__MSP430_448__} \
 %{mmcu=msp430x449:%(cpp_msp2) -D__MSP430_449__} \
 %{mmcu=msp430x110:%(cpp_msp1) -D__MSP430_110__} \
 %{mmcu=msp430x112:%(cpp_msp1) -D__MSP430_112__} \
 %{mmcu=msp430x122:%(cpp_msp1) -D__MSP430_122__} \
+%{mmcu=msp430x1222:%(cpp_msp1) -D__MSP430_1222__} \
 %{mmcu=msp430x123:%(cpp_msp1) -D__MSP430_123__} \
+%{mmcu=msp430x1232:%(cpp_msp1) -D__MSP430_1232__} \
 %{mmcu=msp430x133:%(cpp_msp1) -D__MSP430_133__} \
 %{mmcu=msp430x135:%(cpp_msp1) -D__MSP430_135__} \
 %{mmcu=msp430x147:%(cpp_msp2) -D__MSP430_147__} \
 %{mmcu=msp430x148:%(cpp_msp2) -D__MSP430_148__} \
 %{mmcu=msp430x149:%(cpp_msp2) -D__MSP430_149__} \


... and this diff adds these chips to gas:

diff -u5 config-old/tc-msp430.c config/tc-msp430.c
--- config-old/tc-msp430.c      Sat Sep 14 02:13:24 2002
+++ config/tc-msp430.c  Sat Sep 14 02:15:13 2002
@@ -84,11 +84,13 @@
            {"msp1",            MSP430_ISA_11, bfd_mach_msp11},
            {"msp2",            MSP430_ISA_14, bfd_mach_msp14},
            {"msp430x110",      MSP430_ISA_11, bfd_mach_msp11},
            {"msp430x112",      MSP430_ISA_11, bfd_mach_msp11},
            {"msp430x122",      MSP430_ISA_12, bfd_mach_msp12},
+           {"msp430x1222",     MSP430_ISA_12, bfd_mach_msp12},
            {"msp430x123",      MSP430_ISA_12, bfd_mach_msp12},
+           {"msp430x1232",     MSP430_ISA_12, bfd_mach_msp12},
            {"msp430x133",      MSP430_ISA_13, bfd_mach_msp13},
            {"msp430x135",      MSP430_ISA_13, bfd_mach_msp13},
            {"msp430x147",      MSP430_ISA_14, bfd_mach_msp14},
            {"msp430x148",      MSP430_ISA_14, bfd_mach_msp14},
            {"msp430x149",      MSP430_ISA_14, bfd_mach_msp14},
@@ -182,10 +184,11 @@
                   "                    msp430x323 msp430x325\n"
                   "                    msp430x336 msp430x337\n"
                   "                    msp430x412 msp430x413\n"
                   "                    msp430x110 msp430x112\n"
                   "                    msp430x122 msp430x123\n"
+                  "                    msp430x1222 msp430x1232\n"
                   "                    msp430x133 msp430x135\n"
                   "                    msp430x147 msp430x148 msp430x149\n"
                   "                    msp430x447 msp430x448 msp430x449\n"
                   "                    msp430x435 msp430x436\n"));

With these changes I seem to be able to compile OK for the 1232, by quoting -mmcu=msp430x1232 on the command line. I realise other changes are needed for full support.

Regards,
Steve


Reply via email to