Newcomer unable to compile a very simple program in ubuntu 13.04.

Sigmatec Automação e Sistemas <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <1376047282.9234.7.camel@Sigmatech>
Hello,

I'm just starting to explore this platform and am unable to solve a
configuration issue (I guess) in the first program I try, very simple,
below. The set I use is the MSP430 Ultra-Low-Power MCUs eZ430-F2013
Development Tool with ubuntu v13.04. The installed MSP430 toolchain is
the default one from its apt-get command.
include "msp430x22x4.h"

volatile unsigned int i; // volatile to prevent optimization

void main(void)
{
WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer
P1DIR |= 0X01; // set P1.0 to output direction

for(;;) {
P1OUT ^= 0x01; // toogle P1.0 exclusive-OR
i = 50000; // delay
do (i--);
while (i != 0);
}
}

When I try to compile it under ubuntu 13.04 I receive the error message
below,

sigmatech@sigmatech:~/Desktop/ESL/code/MSP430$ msp430-gcc hello_word.c 
/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot open linker
script file memory.x: No such file or directory
collect2: ld returned 1 exit
status/usr/lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld: cannot open
linker script file memory.x: No such file or directory
collect2: ld returned 1 exit status

Could anyone help please?

TIA

Sigmatech
PS - is there an emacs mode available?





------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.