Hi Arturo,

which version are you using? msp430f5529 was just added to msp. I have almost the same code and it works. You might have to get the latest build.

Here's my code:

#include <io.h>

int main ( void )
{
   unsigned long int i;

   // Stop watchdog timer
   WDTCTL = WDTPW | WDTHOLD;

   // Set pin with LED1 to output
   P1DIR = 1;

   // Preload LED1 off ( active low !)
   P1OUT = 0;

   while(1)
   {
      for(i=0;i<5000;i++);

      P1OUT = 1;

      for(i=0;i<5000;i++);

      P1OUT = 0;
   }

   return 0;
}

Alex

On 10-08-31 04:03 PM, Arturo Gurrola 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

Reply via email to