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.
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.
Hello Archita,
First, I've run your code on my G2231 device with CCS 5.3.0, it worked well without problem.
Here you can see that is a highly common issue
http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/93945.aspx?pi77810=1
And the solution is a firmwire update as I learned from the previous link. You can do it from:
http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Firmware_Update
Best regards.
**Attention** This is a public forum