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/TMS320F28379D: Unable to add driverlib support to newly scratch created project

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE, TMS320F28377D

Tool/software: Code Composer Studio

Based on reading the F2837XD_DEV_USER provided in docs section for the device, the way they have described the inclusion of driverlib files is not working out presently. While calling any of the driverlib based function inside the main, it generates error."Unresolved Symbol remains" and other errors of linking. Is their any different way to add the support of driver lib?? Anything I am missing??

  • Kunal,

    Please try following step:

    • Right click on the project
    • New -> File
    • On the New file screen, click "Advanced" button
    • check the checkbox "Link to file in the filesystem"
    • Now create a linked file, give name to driverlib.lib and browse the file to C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f2837xd\driverlib\ccs\Debug\driverlib.lib
    • Click Finish button
    • Now rebuild the project

    Please let me know if it does not work.

  • Kunal,

    Are you able to resolve the issue?

  • Not resolved..!!

    Still same errors..!!

  • Kunal,

    The easiest way will be import driverlib empty project, and then rename the project and start adding your files.

    This will bring all the necessary DriverLib library, and build/compile configurations.

    Another way is :

    you create a folder called device in your project.

    then copy following files manually in device folder, Something like below:

    <file action="copy" path="../../../../../../device_support/f2837xd/common/include/driverlib.h" targetDirectory="device" />
    <file action="copy" path="../../../../../../device_support/f2837xd/common/include/device.h" targetDirectory="device" />
    <file action="copy" path="../../../../../../device_support/f2837xd/common/source/device.c" targetDirectory="device" />
    <file action="copy" path="../../../../../../device_support/f2837xd/common/targetConfigs/TMS320F28377D.ccxml" targetDirectory="targetConfigs" />

    Then rebuild the project. It should be able to able to resolve the error. I hope you have already added driverlib.lib as explained in previous post.

  • Kunal,

    Just to summarize, here are the manual steps:

    • Create a folder called "device" in the project
    • Copy following files to the "device" folder
      • C2000ware_xxxxx>/device_support/f2837xd/common/include/driverlib.h
      • C2000ware_xxxxx>/device_support/f2837xd/common/include/device.h
      • C2000ware_xxxxx>/device_support/f2837xd/common/source/device.c
      • C2000ware_xxxxx>/device_support/f2837xd/common/source/F2837xD_CodeStartBranch.asm
    • Right-click project, open "Show Build Settings..."
      • On Left side pane, select "General", and on the right side pane, go to "Products" tab, and select C2000ware install
      • On Left side pane, select "Build", and on the right side pane, go to "Variables" tab, and press "Add" button
        • C2000WARE_DLIB_ROOT -> ${COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR}/driverlib/f2837xd/driverlib
      • On Left side pane, select "Build -> C2000 Compiler -> Include Options", press "+" icon to add, and then add "${C2000WARE_DLIB_ROOT}",
    • then press "Apply and Close"
    • Right-click project, New -> File, and add filename as driverlib.lib, press "Advanced", check Linked File and browse to "C:\ti\C2000\C2000Ware_XXXX\driverlib\f2837xd\driverlib\ccs\Debug\driverlib.lib"
    • Rebuild the project.
  • Are you able to resolve the issue?

  • Hi Kunal,

    Reference to your issue. which you have shared the screenshot.

    Device_init() function file is missing. You find that function in the C2000ware folder you will get the file as well. link that file.

    Regards,

    Dnyanesh

  • Hi Kunal,

    Let me know if you need any more details. As I have used and created new project using driverlib.

  • Hi Kunal,

    Does your issue resolve or any help do you need please let me know. I have already used driverlib in my project and it is working perfectly.

  • That Works..!! Thank You..!!