Your program builds for me using mspgcc4 release 20100829 built with the TI header support. (Came out two days ago; this is the only version that will support that chip. Good timing.)
msp430-gcc -mmcu=msp430x5529 q.c Peter On Tue, Aug 31, 2010 at 3:03 PM, Arturo Gurrola <[email protected]> wrote: > Has anyone tried to compile code with MSPGCC for MSP430F5529? > > Is it compatible? > > I'm getting some errors of "undefined reference" although I have all the > header files needed for it to compile (I'm still a newbie here, so there > might be something else wrong). > > For example, I have this simple code (an example by TI): > > #include <msp430f5529 > <http://focus-webapps.ti.com/general/docs/sitesearch/searchdevice.tsp?partNumber=msp430f5529>.h> > > void main(void) > { > volatile unsigned int i; > > WDTCTL = WDTPW+WDTHOLD; // Stop WDT > P1DIR |= BIT0; // P1.0 set as output > > while(1) // continuous loop > { > P1OUT ^= BIT0; // XOR P1.0 > for(i=50000;i>0;i--); // Delay > } > } > > > And I get these errors: > undefined reference to `WDTCTL' > undefined reference to `PADIR_L' > undefined reference to `PAOUT_L' > > > Note that P1OUT makes reference for PAOUT_L in MSP430f5529.h, but then it > doesn't find the reference for PAOUT_L inside that header, I don't know what > to do there. > > What do you recommend? > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Mspgcc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mspgcc-users > >
