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/MSP430F5529: error #10234-D: unresolved symbols remain

Part Number: MSP430F5529

Tool/software: Code Composer Studio

Hello i upload the codes here with the header file. I tried to compile but i get this error. 

**** Build of configuration Debug for project asdqw ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../main.c"
Invoking: MSP430 Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv8/ccs_base/msp430/include" --include_path="C:/Users/mtdt/Desktop" --include_path="C:/Users/mtdt/workspace_v8/asdqw" --include_path="C:/Users/mtdt/Desktop" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
"../main.c", line 52: remark #1527-D: (ULP 2.1) Detected SW delay loop using __delay_cycles. Recommend using a timer module instead
"../main.c", line 71: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 73: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 80: remark #1528-D: (ULP 3.1) Detected flag polling using UCRXIFG. Recommend using an interrupt combined with enter LPMx and ISR
"../main.c", line 103: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 180: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 220: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 215: remark #1535-D: (ULP 8.1) variable "pmax" is used as a constant. Recommend declaring variable as either 'static const' or 'const'
"../main.c", line 299: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 342: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 375: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 399: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 451: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 484: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
"../main.c", line 506: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 513: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 533: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 619: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 624: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 662: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 672: remark #1532-D: (ULP 5.3) Detected printf() operation(s). Recommend moving them to RAM during run time or not using as these are processing/power intensive
"../main.c", line 697: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 698: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 710: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
"../main.c", line 718: remark #1544-D: (ULP 13.1) Detected loop counting up. Recommend loops count down as detecting zeros is easier
"../main.c", line 726: remark #1527-D: (ULP 2.1) Detected SW delay loop using empty loop. Recommend using a timer module instead
Finished building: "../main.c"

Building target: "asdqw.out"
Invoking: MSP430 Linker
"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"asdqw.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv8/ccs_base/msp430/include" -i"C:/Users/mtdt/Desktop" -i"C:/ti/ccsv8/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-msp430_18.1.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="asdqw_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "asdqw.out" "./main.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
<Linking>

undefined first referenced
symbol in file
--------- ----------------
main C:\ti\ccsv8\tools\compiler\ti-cgt-msp430_18.1.3.LTS\lib\rts430x_lc_rd_eabi.lib<boot.c.obj>

error #10234-D: unresolved symbols remain
remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
error #10010: errors encountered during linking; "asdqw.out" not built
remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

>> Compilation failure
makefile:142: recipe for target 'asdqw.out' failed
gmake[1]: *** [asdqw.out] Error 1
makefile:138: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

LoRa.c
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* LORA.c
*
*/
#include "LORA.h"
#define LoRa_Frequency 868000000
#define LoRa_PA_Boost_Pin 1
#define LoRa_Output_RFO_Pin 0
/*Global Variables*/
volatile uint8_t implicit_header_mode=0;
volatile uint8_t modem=0;
volatile uint8_t node_address=0;
volatile uint8_t bandwidth = BW_125;
volatile uint8_t RSSI=0;
volatile uint8_t requestAck=0;
volatile uint8_t destination=0;
volatile uint8_t packetNumber=0;
volatile uint8_t payloadlength=0;
struct pack packet_sent;
/*
* Initialize SPI USCI and Reset pin of LORA
* UCA0
* P2.0 - NSS
* P3.4 � UCA0SOMI
* P3.3 � UCA0SIMO
* P2.7 � UCA0CLK
* P1.5 - RESET
* */
void SPI_Initialize(){
/*Make Pin 1.5 Output*/
P1OUT |= BIT5;
P1DIR |= BIT5;
/*Make Pin 2.0 Output For NSS*/
P2OUT |= BIT0;
P2DIR |= BIT0;
P3SEL |= BIT3+BIT4; // P3.3,4 option select
P2SEL |= BIT7;
UCA0CTL1 = UCSWRST;
UCA0CTL0 |= UCCKPH + UCMSB + UCMST + UCSYNC; // 3-pin, 8-bit SPI master
UCA0CTL1 |= UCSSEL_2; // SMCLK
UCA0BR0 |= 0x02; // /2
UCA0BR1 = 0; //
UCA0MCTL = 0; // No modulation
UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
}
/*
* Milisecond Delay using intrinsic delay function
* For 8MHz Clock speed
* */
void DELAY_Ms(uint16_t ms){
while(ms>0){
__delay_cycles(4000);
ms--;
}
}
/*
* Second Delay using intrinsic delay function
* For 8MHz Clock speed
* */
void DELAY_Sec(uint8_t sec){
while(sec>0){
DELAY_Ms(1000);
sec--;
}
}
/*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
LORA.h

  • Hi,

    your "main" function LoRa.c file is missing. Here's the corresponding error message

    Alpay Arisoy said:
    undefined first referenced 
    symbol in file 
    --------- ---------------- 
    main C:\ti\ccsv8\tools\compiler\ti-cgt-msp430_18.1.3.LTS\lib\rts430x_lc_rd_eabi.lib<boot.c.obj>

    After executing the bootcode "main" is the first function to be executed.

    Best regards,

    Andre

  • I copied the LoRa.c to the main function but still remanining problem is here. Tried to import the lora.c nothing changed. How can i solve this problem?
  • Hi,

    what I meant with missing main function was:

    int main(void)
    {
    	// place your code here
    	
    	return 0;
    }
    

    Every c-project needs a "main"-function. After boot code execution the CPU will execute code from here. 

    Andre

**Attention** This is a public forum