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/CC2650: installing PWM

Part Number: CC2650
Other Parts Discussed in Thread: CC2640R2F

Tool/software: Code Composer Studio

I am trying to install pulse width modulation.

"e2e.ti.com/.../1808488"

But I don't understand the installation instructions.

How do I "Add a compiler search path to the drivers base"?

where is the "drivers base"? how do i edit it?

The instructions also say to add the driver source to the project.

What folder do I put it in?

  • Hi Bruce

    "Add a compiler search path to the drivers base or add the drivers to your TI RTOS installation" means that you need to tell the compiler where the files are, or alternatively put the files in a location the compiler already know about. The latter is probably the simples as you just need to add a copy of the files to C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\products\tidrivers_cc13xx_cc26xx_2_20_01_10\packages\ti\drivers.

    (The Compiler search paths can be found in Project-> Properties->Resource-> Linked Resources)

    To add the source file to the project, go to Project -> Add files in CCS.
  • EDIT: Marie beat me to it! I'll keep this post as there's some additional information, but please refer to her post

    Hi Brunce,

    Adding paths:
    Depending on the compiler, it can be found in different places. For CCSv7, right click on project > Properties > Build > ARM Compiler > Include Options and you'll see search path for '#include' directives.

    In IAR it's very similar, right click on project > Options > C/C++ Compiler > Preprocessor Tab, and you'll see a box for additional include directories.

    Drivers base:
    Ideally this would already be included, and it depends on your SDK. Eg. for CC2640R2F SDK, the directory is <SDK>\source\ti\drivers
    Which already is included, so you don't have to worry about this.

    Adding driver source:
    In both IAR and CCS you can just drag and drop the source file into the project, stick it whereever you want. I'd say place it in the Drivers folder. As long as it's included, it'll get compiled.

    CCS/IAR are complex IDEs, I highly suggest getting to learn them by building simple projects and making minor tweaks. For CCS we have processors.wiki.ti.com/.../Category:CCS_Training

    Regards,
    Rebel