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/LAUNCHXL-F280049C: USING DRIVERLIB (SCI LIBRARY)

Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi, my name is Iulian Popa.

I´m a student from Univerity of Zaragoza in Spain. Im using one of your development board 'LAUNCHXL-F280049C' and I have some questions and problems when I´m trying to use some example projects from driverlib.

First of all, Im using:

-  CodeComposer version 9.3

-  C2000Ware version 3.1.0.00

I've tried to use the following example proyect from the documentation "sci_ex2_interrupts" (C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f28004x\examples\sci). It works well. 

I want to use this examples combinated with other project examples like "cla_ex2_background_task.c" (C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f28004x\examples\cla) but I get many problems when im trying to build the project. The problems are that the compiler cannot find the includes from the folder "device" in the "sci_ex2_interrupts" project. To remedy this problems I tried to include the folder path os these headers/source codes in the project properties (Right click on the project in the project explorer > Properties > Resource > Linked Resource & Right click on the project in the project explorer > Properties > Build > C2000 Compiler > Include options) but it doesnt fix the problems. 

So I need some help to understant what I have to do or how is the proper way to combine the examples that depends on "driverlib or device" with the others examples.

Can you help me? Thank you.

Iulian.

  • Hi,

    Thanks for the background. It is fairly easy to combine multiple modules and work with driverlib projects. In fact the device folder files should be identical between the two examples which wanted to combine.

    You can very much include SCI functions in the CLA background task example. In the cla_ex2_background_task.c file you can just add the SCI functions and get going. Hope that will help you to merge the examples and work.  It just worked for me when I combined that way. 

    If you still face any issue please provide the log of the error you are facing to help you better.

    Regards,

    Sudharsanan

  • Hi Sudharsanan,

    I`ve tied to use your instrucctions but I cant make it work. I think the problem is that "sci_ex2_interrupts" have many function for set the GPIOs for SCI, configure the SCI communication, configure the interrupts... and when im trying to use that function appears a lot of error. The errors are like "I cant found the define for this,the function is declareted implicitly... and all of this happends because I cant tell to the compiler that i want to link files from "C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f28004x\driverlib" to my current project, because the "sci_ex2_interrupts" depend directly of that folder.

  • Hi,

    I don't understand what is the limitation you are facing? Is it possible to send a snapshot of your errors or zip and send the ccs project from your workspace to support you better. 

    Regards,

    Sudharsanan

  • I´m sorry fot the late responde, but TI didn´t notify me about it.

    Ihave attached a .zip file with 6 screen captures with some comments and a folder that include both projects (mine and the one that i want to use into mine)

    Thank you, Iulian.TI forum question.zip

  • Hello,

    Sorry for the response from my side as well. I could not recreate the issue at my end. I used the release package of C2000Ware_3_01_00_00 and could easily use SCI function (the same SCI_setConfig) in Cla example .c file without any issue..

    But I do see the issue when I compile your project. 

    Where are you sourcing the CLA example project from? Is it from release package on TI website. Since you mentioned Resource explorer in your screen shots. 

    Please explain how you are sourcing the projects from? 

    Regards,

    Sudharsanan