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.

error #10234-D: unresolved symbols remain

Other Parts Discussed in Thread: MSP430G2553

Hi,

I am trying to send 4 bit data through 433MHZ RF. My code will transmit 0x0A if switch1 is pressed and 0x0F if switch2 is pressed.

But i am getting compilation failure and error as "error #10234-D: unresolved symbols remain".

I am using CCS 6.1.1

My code is as follows

/*
 ***RF_TX_test.c***
 red_led = P1.0
 green_led = P1.1
 switch1 = P1.2
 switch2 = P1.3
 tx_en = P1.4
 transmit 4 BIT Data = P2OUT
 */
 
#include <msp430.h>
#include <stdio.h>
#define GREEN_LED_ON P1OUT &= ~BIT0   //P1.0 to indicate switch1 is pressed
#define GREEN_LED_OFF P1OUT |= BIT0
#define RED_LED_ON P1OUT &= ~BIT1     //P1.1 to indicate switch2 is pressed
#define RED_LED_OFF P1OUT |= BIT1
void CLOCK_Init(void);
void ConfigPins(void);
void Transmit_rf(unsigned char);
void delay(void);
void main(void)
{
  
  WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer
  CLOCK_Init(); // Initialize clocks for 16 MHz
  ConfigPins(); // Configure I/O pins
  
while(1)
{
if((P1IN&BIT2) == 0)  
{
GREEN_LED_ON;
RED_LED_OFF;
Transmit_rf(0x0A);
}
if((P1IN&BIT3) == 0) 
{
GREEN_LED_OFF;
RED_LED_ON;
Transmit_rf(0x0F);
}
}
}
void CLOCK_Init(void)
{
//16Mhz @ maximum device frequency
  if (CALBC1_16MHZ==0xFF)     // If calibration constant erased
  {
    while(1);                               // do not load, trap CPU!!
  }
  DCOCTL = 0;                               // Select lowest DCOx and MODx settings
  BCSCTL1 = CALBC1_16MHZ;                   // Set range
  DCOCTL = CALDCO_16MHZ;                    // Set DCO step + modulation*/
  __delay_cycles (80000000);     // delay to stabilize DCO 
}
void configPins(void)
{
  /* For LED */
  P1DIR |= (BIT0 + BIT1);                   // Set P1.0 and P1.1 to output direction for led
  P1OUT &= ~BIT0; // Initially RED LED is off
  P1OUT &= ~BIT1; // Initially GREEN LED is off
  
  /* For SWITCHES */
  P1SEL &= ~(BIT2 + BIT3); // Select GPIO as an input pin by clearing respective SEL register
  P1DIR &= ~(BIT2 + BIT3);                  // Set P1.2 and P1.3 to input direction for switches
  P1REN |= (BIT2 + BIT3); // Enable the pull up or down register by setting REN register
  P1OUT |= (BIT2 + BIT3); // Set to pull up by setting the pin output register
  
  /* For RF */
  P1DIR |= BIT4; // Set P1.4 to output direction for tx_en
  P2DIR |= 0XFF; // Set P2 to output direction
}
void Transmit_rf(unsigned char d)
{
 P2OUT |= d;     //data to PORT2 and from PORT2 to RF Module
 P1OUT &= ~BIT4;  //Low 
 delay();
 P1OUT |= BIT4;   //High
 delay();
}
void delay(void)
{
__delay_cycles (500);      // random delay
}
COMPILATION OUTPUT


**** Build of configuration Debug for project msp_rf_tx ****

"C:\\TI\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../msp_rf_tx.c'
'Invoking: MSP430 Compiler'
"C:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmsp --abi=eabi --use_hw_mpy=none --include_path="C:/TI/ccsv6/ccs_base/msp430/include" --include_path="C:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" --advice:power=all -g --define=__MSP430G2553__ --diag_warning=225 --display_error_number --diag_wrap=off --printf_support=minimal --preproc_with_compile --preproc_dependency="msp_rf_tx.pp" "../msp_rf_tx.c"
"../msp_rf_tx.c", line 57: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../msp_rf_tx.c", line 63: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
"../msp_rf_tx.c", line 96: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
'Finished building: ../msp_rf_tx.c'
' '
'Building target: msp_rf_tx.out'
'Invoking: MSP430 Linker'
"C:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/bin/cl430" -vmsp --abi=eabi --use_hw_mpy=none --advice:power=all -g --define=__MSP430G2553__ --diag_warning=225 --diag_wrap=off --display_error_number --printf_support=minimal -z -m"msp_rf_tx.map" --heap_size=80 --stack_size=80 -i"C:/TI/ccsv6/ccs_base/msp430/include" -i"C:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/lib" -i"C:/TI/ccsv6/tools/compiler/ti-cgt-msp430_4.4.5/include" --reread_libs --warn_sections --diag_wrap=off --display_error_number --xml_link_info="msp_rf_tx_linkInfo.xml" --use_hw_mpy=none --rom_model -o "msp_rf_tx.out" "./msp_rf_tx.obj" "../lnk_msp430g2553.cmd" -l"libc.a"
<Linking>
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions

remark #10372-D: (ULP 4.1) Detected uninitialized Port 3 in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
undefined first referenced
symbol in file
--------- ----------------
ConfigPins ./msp_rf_tx.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "msp_rf_tx.out" not built
>> Compilation failure
gmake: *** [msp_rf_tx.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

can anyone please guide me where exactly is the problem....