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.

MSP430FR2355: driverlib.h unresolved symbol

Part Number: MSP430FR2355
Other Parts Discussed in Thread: MSP430WARE

I have the following code and am trying to compile it....I set up the project to include the folder containing the driverlib.h file within the project compiler include section.  Can someone tell me where to point the linker file location because I am getting an error when compiling?

#include <driverlib.h>

void main(void)
{

    WDTCTL = WDTPW | WDTHOLD;

    GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN7);
}

Error:


unresolved symbol GPIO_setOutputHighOnPin, first referenced in ./Src/main.obj SS-ABC C/C++ Problem

  • Hello,

    I would recommend importing a DriverLib example from TI Resource Explorer. I selected the DriverLib MSP430FR2xx_4xx "gpio_ex1_outputHi" example, imported it into my CCS workspace, changed the device part number to MSP430FR2355 and data memory model to large under the CCS project properties and built the project without errors.

  • Hi James...

    I am having issues with the install.  I installed the latest CCS and library package on my D drive because C is full.  When I find the above example you suggest and try and import I get the message that package 'needs t o be installed locally'....If I move to the next step it wants to install at C:\ti....I cannot do this so I installed at D:\Applications\ccs folder but your library even though it exists at the level as a folder cannot be recognized.....

    What can I do?

  • I am trying to do as CCS requests and point under Windows/Preferences to a new location for Resource Explorer to recognize but I am not sure what file / folder to point to...nothing seems to work

  • On my PC, MSP430Ware and other similar packages folders are located in C:\ti, not inside the CCS folder. I'd recommend moving them to the "ti" or equivalent folder.

  • Also, you'll probably want to update your product discovery path in CCS to point to D:\Applications on your PC. In CCS, go to Preferences > Code Composer Studio > Products > Product discovery path > Add...

    After doing that, you may need to close and reopen CCS for it to discover new products.

  • James....

    I've tried all you suggested....Moving to root folder next to ccs1031 but I do not recognize the driverlib.h  Here is the screen I am seeing and the error...I have checked and unchecked C:/ti to no avail....I've also pointed directly to the driverlib.h that you see in the discovered products section to no avail.  I've even dug all the way down to where the driverlib.h lives but still same error.  The line that breaks the source code is 

    #include <driverlib.h>
    

    #include <driverlib.h>

  • The DriverLib example project that I imported from TI Resource Explorer includes a "driverlib" folder that contains the source code and 'driverlib.h'. Most likely, your #include is pointing to that location in the CCS project directory but it's missing. You can try three things.

    1. Import the "emptyProject" DriverLib template project into your workspace by clicking File > Import > Code Composer Studio > CCS Projects > Next > Browse > <your folder structure>/msp430ware<version>/driverlib/examples/MSP430FR2xx_4xx and selecting "emptyProject" under Discovered Projects. NOTE: Make sure you have "Copy projects into workspace" selected before proceeding.
    2. Add the "<your folder structure>/driverlib/MSP430FR2xx_4xx" path to the Include Options under CCS Build > MSP430 Compiler > Include Options.
    3. Create a new project using the DriverLib template if that exists as an option (it should, since your DriverLib is shown under products)

**Attention** This is a public forum