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/MSP430G2553: ERROR "UNRESOLVED SYMBOLS REMAIN"

Part Number: MSP430G2553
Other Parts Discussed in Thread: TRF7970A

Tool/software: Code Composer Studio

BELOW IS THE COMPILED ERROR, HOW DO I RESOLVE THIS.

THANK YOU!

undefined first referenced
symbol in file
--------- ----------------
P4DIR ./main.obj
P4IN ./MIFARE Classic/directmode.obj
P4OUT ./main.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking;
"MSP430G2553_TRF7970A_SDM_Mifare_lib.out" not built

>> Compilation failure
makefile:155: recipe for target 'MSP430G2553_TRF7970A_SDM_Mifare_lib.out' failed
gmake: *** [MSP430G2553_TRF7970A_SDM_Mifare_lib.out] Error 1
gmake: Target 'all' not remade because of errors.

  • Hello,
    This is a common linker error. It is documented in detail in the below link:
    processors.wiki.ti.com/.../10234

    Basically you need to include the object file(s) that have the undefined symbols (P4DIR, P4IN, P4OUT) defined. This is something application specific so it is something you need to determine yourself (though if you are compiling a TI example, the experts in the MSP forum may be able to provide some more suggestions)

    Thanks
    ki