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/MSP432P401R: Linking error - Unresolved symbol

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I am quite new to CCS and I was trying to build my first project which I copied from MSP432 launchpad demo code (blink). I am getting a linking error which is pasted below:

>> Compilation failure

makefile:143: recipe for target 'Proj1-Blink.out' failed
symbol in file
--------- ----------------
GPIO_setAsOutputPin ./main.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "Proj1-Blink.out" not built
gmake[1]: *** [Proj1-Blink.out] Error 1
makefile:139: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

I did try to understand the root cause. GPIO_setAsOutputPin is defined in GPIO.h  which is included in driverlib.h. This function is already defined in gpio.c which includes gpio.h. So i don't understand the cause for this linker error. I have also included path for driverlib in ARM linker (under build options). I appreciate if you can point me in the right direction to resolve this error.

Thanks!

  • Hello Sandeep,

    <<< I was trying to build my first project which I copied from MSP432 launchpad demo code (blink).
    What does it mean: I copied from MSP432 launchpad demo code?

    When using CCS you have many options.
    The most important is to get a valid project setup.
    To start a new project you can create a new project and set it up to your needs or you can just Import an existing project from Resources Explorer.
    Resource Explorer Classic has some other options.

    My recommendation:
    - create a new project with driverlib support
    - build it
    - at this point you can add/copy/import source files
    - start development.
  • Hi Tomasz,

    Many thanks for quick response. Appreciate it. I actually created a new project and copied the main.c code from blink LED examples under Demos directory of MSP432 SDK using resource explorer. Of course I did not import the entire CCS project.

    But this got resolved when I included the driverlib.lib path under ARM Linker-->File Search Path under Build Settings.

    Regards,
    Sandeep