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.

MSP430FR5969: linker error

Part Number: MSP430FR5969

Hi,

I have writtern a program for MSP430fr5969 and it works when compiled and debuged in CCS 10 and the program works fine, Now i m working in LDRA cover tool with CCS linker , there it creates an error i have pasted down the error block. I am not able to find why it creates an error 

'Building target: "perdaa_7.out"'

'Invoking: MSP430 Linker'

"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --advice:hw_config=all --define=__MSP430FR5969__ --define=_MPU_ENABLE -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 -z -m"perdaa_7.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs1020/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1020/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1020/ccs/ccs_base/msp430/lib/FR59xx" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/lib" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include" --priority --reread_libs --define=_MPU_ENABLE --diag_wrap=off --display_error_number --warn_sections --xml_link_info="perdaa_7_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "perdaa_7.out" "./built_in_test.obj" "./clock.obj" "./command.obj" "./conversion.obj" "./dose_rate_calculation.obj" "./perdaa_7.obj" "./pwm.obj" "./rtc.obj" "./spi_nand.obj" "./spi_nand1.obj" "./spi_nand2.obj" "./timer_counter.obj" "./uart.obj" "./uart_interrupt.obj" "../lnk_msp430fr5969.cmd" -llibmpu_init.a -llibmath.a -llibc.a

undefined first referenced

symbol in file

--------- ----------------

QQQfcn_ptr_num ./uart_interrupt.obj

ldra_buffer ./uart_interrupt.obj

ldra_port_open ./uart_interrupt.obj

ldra_port_write ./uart_interrupt.obj

ldra_sprintf1 ./uart_interrupt.obj

qqpopulate_array_fcn_ptrQQ ./uart_interrupt.obj

zzopen ./uart_interrupt.obj

error #10234-D: unresolved symbols remain

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.

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.

error #10010: errors encountered during linking; "perdaa_7.out" not built

>> Compilation failure

makefile:156: recipe for target 'perdaa_7.out' failed

gmake[1]: *** [perdaa_7.out] Error 1

makefile:152: recipe for target 'all' failed

gmake: *** [all] Error 2

Error: Failed to build the program

  • Hi Sasi,

    Let me see if I get you some help with this.

  • Hi Sasi,

    Apparently, the linker is looking for those symbols in your .uart_interrupt module.  Where do you have these variables defined?

    You can ignore the ULP 4.1 warnings.

  • Hi Dennis,

    I contacted LDRA team and was able to sort out the error,

    while using interrupt call function 

    #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)

    "__TI_COMPILER_VERSION__" is not defined in LDRA macro so by defining it externally problem solved

  • Hi Sasi,

    Good find!  Sorry it took so long to get to the solution, but I'm glad you were able to solve it and move on.

    I will mark this posting as RESOLVED, but if this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread is locked, please click the "Ask a related question" button, and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.

**Attention** This is a public forum