Dear Yama,
I got it to compile finally! I added the msp430 directories to the PATH
variable in order to do it. However, when I try to compile with
different mmcus one of them does not compile and I do not know why. The
msp430f2013 and msp430g2231 mmcus compile ok but the msp430x22x4 mmcu
does not compile at all with the previous ld linker script memory.x.
What does it mean?
TIA,
Sigmatech
On Sat, 2013-08-10 at 08:21 -0500, Yama Ploskonka wrote:
> OK.
>
> Were you also using the -mmcu? Did using -mmcu make a difference?
>
>
>
> On 08/10/2013 05:25 AM, Sigmatec Automação e Sistemas wrote:
>
> >
> > Dear Yama,
> >
> > Thanks for the message. The lack of the # instead of #include was a
> > mistype, sorry.
> >
> > On Fri, 2013-08-09 at 22:58 -0500, Yama Ploskonka wrote:
> >
> > > If I am compiling for an msp430g2553, I will write this line
> > >
> > > msp430-gcc hello_world.c -mmcu=msp430g2553
> > >
> > > output will be the file a.out
> > >
> > > No idea how to change this for eZ430-F2013, but you get the idea.
> > >
> > > Also, I would put a # before the include, as in
> > >
> > > #include "msp430x22x4.h"
> > >
> > >
> > >
> > >
> > > On 08/09/2013 06:21 AM, Sigmatec Automação e Sistemas wrote:
> > > > 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
> > > > _______________________________________________
> > > > Mspgcc-users mailing list
> > > > Mspgcc-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> > >
> >
> >
>
>
------------------------------------------------------------------------------
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
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users