The following is a part of simple code that I input to the CCS.
21 #include "msp430f427.h"
22
23 int main(void)
24 {
25 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
26 int k;
27 char *pLCD = (char *) &LCDM1;
28 FLL_CTL0 |= XCAP18PF;
29 *pLCD++ = 1;
30 for (k=1; k < 20; k++)
31 *pLCD++ = 0;
When I try to "debug", CCS sent the following two error messages:
Severity and Description Path Resource Location Creation Time Id
declaration may not appear after executable statement in block Lab2 blink_led2.c line 26 1311571682507 14
declaration may not appear after executable statement in block Lab2 blink_led2.c line 27 1311571682507 15
Can someone tell me what's wrong with Line 26 and LIne 27 and how to correct it.
By the way, I am using MSP430F427 with the TS430PM64 hardware board. I did not solder the 32K crystal yet to the hardware target board - and I plan to use the pin 12 to light up the target board LED by toggle the LCDON on and off as experiment. Is this a problem? Thanks for any help.