I have tried using the msp430g2211 and msp430g2231 and these both load a simple blink program with no problems. But as soon as I put a msp430g2302 into my mspexp430g2 I get an error message saying "load program error" "<filepath> load failed" and the following information comes up in the console
MSP430: Trouble Writing Memory Block at 0xfffe on Page 0 of Length 0x2: Could not write device memory
MSP430: GEL: File: C:\Users\MR_ONE\launchpad\BlinkMe\Debug\BlinkMe.out: Load failed.
I change the device variant under properties to msp430g2302 and I have tested with two different msp430g2302.
My code is:
#include <msp430g2302.h>
int main(void) {
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction
for(;;) {
volatile unsigned int i; // volatile to prevent optimization
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
i = 10000; // SW Delay
do i--;
while(i != 0);
}
}
Thanks in advance for any help.