I have downloaded the current binutils snapshot from
ftp://sourceware.org/pub/binutils/snapshots

It contains code for the missing processors. Compiling binutils also
prepares a complete set of appropriate linker
scripts.

Libc startup files exist for the msp430x2131 in the current binary
distribution.

At least one problem with a header file needs to be fixed manually
(see
below).

John Heenan

----- Original Message ----- 
From: "John Heenan" <[email protected]>
To: <[email protected]>
Sent: Saturday, November 12, 2005 3:20 PM
Subject: Both COMPLING and LINKING for msp430x2131 fails with latest
windows binary installer


Dtran and others who have have mentioned problems compiling for
MSP430x2 are correct.

Here are two specific COMPILING and LINKING problems arising
with the binary Windows distribution of 26 October 2005.

These problems have NOTHING TO DO with msp430-gdb, msp430-gdbproxy or
with downloading.

1. COMPLIATION failure reason: header file iostructures.h has
only been partially updated due to incomplete macros. Easily
fixed as below. Nothing to do with the compiler.

2. LINKER failure reason: msp430-ld (version 2.16) does not
'support emulation' for msp430x2131. This results in linker
failure. Supported emulation modes can be confirmed from
msp430-ld -V.
Actual output below.

Partial fix for iostructures.h

#if defined(__MSP430_HAS_PORT1__) || defined(__MSP430_HAS_PORT2__) \
 || defined(__MSP430_HAS_PORT1_R__) || defined(__MSP430_HAS_PORT2_R__)
struct port_full_t {
  ioregister_t in; /* Input */
  ioregister_t out; /* Output */
  ioregister_t dir; /* Direction */
  ioregister_t ifg; /* Interrupt Flag */
  ioregister_t ies; /* Interrupt Edge Select */
  ioregister_t ie; /* Interrupt Enable */
  ioregister_t sel; /* Selection */
#if defined(__MSP430_HAS_PORT1_R__) || defined(__MSP430_HAS_PORT2_R__)
  ioregister_t ren; /* Pull up or down resistor enable */
#endif

};
#endif


Comiling the leds example for msp430x2131
by using using make on makefile with
CPU = msp430x2131

msp430-gcc -mmcu=msp430x2131 -o leds.elf main.o
msp430-ld: unrecognised emulation mode: msp430x2131
Supported emulations: msp430x110 msp430x112 msp430x1101 msp430x1111
msp430x1121
msp430x1122 msp430x1132 msp430x122 msp430x123 msp430x1222 msp430x1232
msp430x133
 msp430x135 msp430x1331 msp430x1351 msp430x147 msp430x148 msp430x149
msp430x155
msp430x156 msp430x157 msp430x167 msp430x168 msp430x169 msp430x1610
msp430x1611 m
sp430x1612 msp430x311 msp430x312 msp430x313 msp430x314 msp430x315
msp430x323 msp
430x325 msp430x336 msp430x337 msp430x412 msp430x413 msp430x415
msp430x417 msp430
xE423 msp430xE425 msp430xE427 msp430xW423 msp430xW425 msp430xW427
msp430xG437 ms
p430xG438 msp430xG439 msp430x435 msp430x436 msp430x437 msp430x447
msp430x448 msp
430x449
make: *** [leds.elf] Error 1

John Heenan




>Hello,
>
>I pulled down the msp430gcc and work thru the samples code, it's
great.  but it does seem to support msp430f2131.  >Can some one please
point me to how i can get the inlcude, libe, etc files for this mcu.
>
>thank
>dtran


Reply via email to