This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem programming MSP430G2553 with Launchpad

Other Parts Discussed in Thread: MSP430G2553

Hello all,Am beginner in MSP430 grounds and started executing some basic LED codes on lauchpad 1,4 & using ccs v5.

#include <msp430g2553.h>

unsigned int delay(unsigned int);

void main(void)

{

  WDTCTL = WDTPW + WDTHOLD;    // Stop watchdog timer

  P1DIR |= 0x01;

P1OUT |= 0x01;    // LED on

  delay(100);

  P1OUT &= ~0x01; // LED off

}

unsigned int delay(unsigned int ms)

  {

  unsigned int i, j;

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

   for (j = 0; j<=1000; j++);

}

When I execute the above code Am getting stucked up in line 7 and  LED is continuous ON and Am left with the message :

Trouble Reading Memory Block at 0x3fe on Page 0 of Length 0x2: Could not determine device state.

Could anyone please help me in figuring out this issue.

 

 

**Attention** This is a public forum