The current version from git is release 20101114; it uses the Texas
Instruments headers, so there are a lot of other changes. It should have
been possible to make this work with 20101006 and the legacy headers, but
you're better off with the new stuff anyway.
The #if 1 hack went into the TI version with the following. It's likely you
ran into this problem, and that the patch needs to be in the legacy version
too. I'll try to remember to add it.
Peter
commit 8edaf13d98f40c40fd6a8caebdbea2847ac875fe
Author: Peter A. Bigot <[email protected]>
Date: Sun Aug 8 19:52:33 2010 -0500
Temporarily unconditionally define macros for CPUX.
gcc does not support -mmcu tags for 55x2 and similar chips, and the
iomacros.h header is included before the functional presence
preprocessor
symbol is available. For now, disable the check and make the sfra*
macros
always available. In the future we want mcu options that support
generic
CPUX chips; at that point it's reasonable to require the user to provide
those flag, or to have another header that automatically defines them
based
on the specific chip symbol.
On Tue, Nov 23, 2010 at 5:11 PM, Andreas Schwarz <[email protected]> wrote:
> Hi Peter,
>
> Thanks for the fast reply. Yes, I used the correct MCU but it seams
> the problem of an outdated libc. So i just got the last git version
> and a simple diff showed me the different parts in the iomacros.h:
>
> #if 1 || defined(__MSP430X__) || defined(__MSP430X2__)
> #define sfra_(x,x_) volatile unsigned long int x asm(#x_)
> #define sfra(x,x_) sfra_(x,x_)
> #endif
>
> I my previously used libc version the __MSP430X2__ and "if 1" were
> missing. The "If 1" looks also a little bit like a hack for me.
> The not working libc version was 20101006.
> Now I installed: libc ti_20101114
>
> I will try it out to morrow morning.
> I'm convinced that it will work now.
>
> THX
> Andreas
>
>
> On Tuesday 23 November 2010 23.10:26 Peter Bigot wrote:
> > Did you add an -mmcu=cc430x6137 or similar flag to the compiler
> > invocation? That's what causes the __MSP430XV2__ macro to be
> > defined, which would ensure sfra is available. Without such a
> > flag, the compiler assumes you're targeting a really old MCU
> > that doesn't support 20-bit addresses.
> >
> > Peter
> >
> > On Tue, Nov 23, 2010 at 3:29 PM, Andreas Schwarz
> <[email protected]> wrote:
> > > Hi
> > >
> > > I created a simple application including only the cc430x613x.h
> > > header. Now the compiler is reporting some errors:
> > >
> > > /opt/msp430-
> > > gcc-4.4.4/lib/gcc/msp430/4.4.4/../../../../msp430/include/msp43
> > > 0/dmax.h:85: Fehler: expected »)« before numeric constant
> > >
> > > In the dmax.h file the sfra(DMA0SA, DMA0SA_) marco fails.
> > > It is not preprocessed some how. I checked first the
> > > preprocessor output and it seams clear that its not correct
> > > done:
> > >
> > > from: sfra(DMA0SA, DMA0SA_);
> > > to: sfra(DMA0SA, 0x0500 + 0x02);
> > >
> > > sfra is not replaced. A closer lock in the iomacros.h files
> > > shows that __MSP430X__ might not be set. I have no idea what
> > > that define is used for. There is also an __MSP430X2__ which
> > > seams to be set. Does anybody have an idea what went wrong?
> > >
> > > I tried to the most current versions of gcc and libc
> > > msp430-gcc (MSPGCC4_20101006) 4.4.4
> > >
> > > Best Regards,
> > > Andreas
> > >
> > >
> > > ---------------------------------------------------------------
> > > --------------- Increase Visibility of Your 3D Game App & Earn
> > > a Chance To Win $500! Tap into the largest installed PC base &
> > > get more eyes on your game by optimizing for Intel(R) Graphics
> > > Technology. Get started today with the Intel(R) Software
> > > Partner Program. Five $500 cash prizes are up for grabs.
> > > http://p.sf.net/sfu/intelisp-dev2dev
> > > _______________________________________________
> > > Mspgcc-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users