[Tinyos-help] Constructing and updated mspgcc for newer msp430 parts
Aurelien Francillon
aurelien.francillon at inrialpes.fr
Tue Dec 23 01:29:02 PST 2008
Le Monday 22 December 2008 22:41:28 Cameron Ross, vous avez écrit :
> Hello,
>
> I'm attempting to build the mspgcc toolchain so that I can deploy
> TinyOS applications to the MSP430F5438 microcontroller. I have
> applied the patch to tc-msp430.h to enable use `$' as a logical line
> separator and the mspgcc build process executes without problem. I
> can then use this toolchain to build the Blink app for the msp-based
> platforms. I've also loaded the Blink app onto a telosb mote and it
> works. However, when I attempt to build Blink for my own platform,
> called symsat, I get the errors indicated below. Note that I have
> tried regenerating the chips msp430 file under chips called
> msp430regtypes.h based on the mspgcc headers, but it does not resolve
> the problem. Any help would be greatly appreciated.
>
I don't know a lot about the mspgcc and various chip support but:
1) "`$' as a logical line" you can avoid to patch your compiler and use a
standard compiler by adding in the msp.rules file (i.e.
tinyos-2.x/support/make/msp/msp.rules )
PFLAGS += -fnesc-separator=__
AMADDR = ActiveMessageAddressC__addr
and removing the line :
AMADDR = ActiveMessageAddressC\$$addr
You will need a nesc >= 1.2.8
You can do the same for the avr toolchain and it's even expected to become the
default at some point in time
2) it looks like you have a problem with msp libc includes,
you can build with gcc/ld/as in verbose mode using:
CFLAGS=-v make symsat
and compare it with
CFLAGS=-v make telosb
It proved to be very helpful to me to track this kind of problems
Best,
Aurélien
More information about the Tinyos-help
mailing list