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.

Compiler/MSP430F5529: USCI_A_UART unresolved symbols remain

Part Number: MSP430F5529

Tool/software: TI C/C++ Compiler

I'm trying to get this program to compile but I can't seem to figure out what's wrong. Uncommenting any of these functions results in a unresolved symbols and linking error...

GPIO_setAsPeripheralModuleFunctionInputPin
USCI_A_UART_init
USCI_A_UART_enable

/*
 * main.c
 * MSP430F5529
 */


#include <msp430.h> // What is this needed for?
#include <stdint.h> // Library needed to use uint8_t uint16_t .. standard variable types
#include <stdio.h> // Library needed for printf() to work. What else does this do?
#include <usci_a_uart.h>
#include <gpio.h>

USCI_A_UART_initParam uartsetup;

int main(void) {

    WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer

    //P3.4,5 = USCI_A1 TXD/RXD
    //GPIO_setAsPeripheralModuleFunctionInputPin(GPIO_PORT_P3, GPIO_PIN3 + GPIO_PIN4);

    uartsetup.selectClockSource = USCI_A_UART_CLOCKSOURCE_SMCLK;
    uartsetup.selectClockSource = USCI_A_UART_CLOCKSOURCE_ACLK;
    uartsetup.clockPrescalar = 3;
    uartsetup.firstModReg = 0;
    uartsetup.secondModReg = 3;
    uartsetup.parity = USCI_A_UART_NO_PARITY;
    uartsetup.msborLsbFirst = USCI_A_UART_LSB_FIRST;
    uartsetup.numberofStopBits = USCI_A_UART_ONE_STOP_BIT;
    uartsetup.uartMode = USCI_A_UART_MODE;
    uartsetup.overSampling = USCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION;

    USCI_A_UART_init(USCI_A0_BASE, &uartsetup);

    //USCI_A_UART_enable(USCI_A0_BASE);

	for(;;){

		printf ("Hey! \n");

	}

}


**** Build of configuration Debug for project F5529_Sandbox ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/cl430" -vmspx --abi=eabi --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/ccs_base/msp430/lib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/include" --advice:power=all -g --define=__MSP430F5529__ --display_error_number --diag_warning=225 --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 23: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 24: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 25: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 26: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 27: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 28: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 29: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 30: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 31: remark #1546-D: (ULP 15.1) Detected consecutive bitfield assigns. Recommend using bit mask instead
"../main.c", line 39: 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
'Finished building: ../main.c'
' '
'Building target: F5529_Sandbox.out'
'Invoking: MSP430 Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/bin/cl430" -vmspx --abi=eabi --data_model=restricted --use_hw_mpy=F5 --advice:power=all -g --define=__MSP430F5529__ --display_error_number --diag_warning=225 --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=full -z -m"F5529_Sandbox.map" --stack_size=160 --heap_size=320 --cinit_hold_wdt=on -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/include" --reread_libs --warn_sections --diag_wrap=off --display_error_number --xml_link_info="F5529_Sandbox_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "F5529_Sandbox.out" "./main.obj" "../lnk_msp430f5529.cmd" -l"libmath.a" -l"libc.a"
<Linking>

remark #10371-D: (ULP 1.1) Detected no uses of low power mode state changing instructions
undefined first referenced
remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
symbol in file
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.
USCI_A_UART_init ./main.obj
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.

error #10234-D: unresolved symbols remain

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

**** Build Finished ****

**Attention** This is a public forum