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?