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.

CCS/MSP430F2232: msp430f2232

Part Number: MSP430F2232

Tool/software: Code Composer Studio

hi,

actually iam traying to work msp430f2232 in ccs i have get the following errors please tell me what was the reason

Description Resource Path Location Type
#10010 errors encountered during linking; "lcdinterface.cpp.out" not built lcdinterface.cpp C/C++ Problem
<a href="processors.wiki.ti.com/.../10234"> unresolved symbols remain lcdinterface.cpp C/C++ Problem
gmake: *** [all] Error 2 lcdinterface.cpp C/C++ Problem
gmake[1]: *** [lcdinterface.cpp.out] Error 1 lcdinterface.cpp C/C++ Problem
unresolved symbol P4DIR, first referenced in ./main.obj lcdinterface.cpp C/C++ Problem
unresolved symbol P4OUT, first referenced in ./main.obj lcdinterface.cpp C/C++ Problem

#include <msp430f2232.h>
#define RS BIT1
#define RW BIT2
#define E BIT3
#define line1 pin_sequence_command(0X80)
#define line2 pin_sequence_command(0XC0)
void pin_sequence_command(unsigned char cmd)
{
P4OUT &=~(RS);
P4OUT &=~(RW);
P4OUT |=(E);
P4OUT =cmd;
_delay_cycles(1);
P4OUT &=~(E);
_delay_cycles(10);
}
void pin_sequence_data(unsigned char data)
{
P4OUT |=(RS);
P4OUT &=~(RW);
P4OUT |=(E);
P4OUT =data;
_delay_cycles(1);
P4OUT &=~(E);
_delay_cycles(10);
}
void lcd_string(char *str)
{
unsigned char i=0;
while (str[i]!=0)
{
pin_sequence_data(str[i]);
i++;
}
}
void lcd_int(void)
{
P4DIR |=0X08;
P4DIR |=0X08;
P4OUT &=~(E);
_delay_cycles (1500);
pin_sequence_command(0X38);
pin_sequence_command(0X0E);
pin_sequence_command(0X01);
pin_sequence_command(0X02);
_delay_cycles(2000);
pin_sequence_command(0X06);
}

/**
* main.c
*/
void main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer
lcd_int();

line1;
_delay_cycles(10);
lcd_string("lcd project");
_delay_cycles(100);
line2;
_delay_cycles(10);
lcd_string("prashanth");
while(1);
}

**Attention** This is a public forum