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/LAUNCHXL2-570LC43: Importing Library from Arduino to Code Composer Studio

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: ENERGIA

Tool/software: Code Composer Studio

Hi, I have a Libary that I want to use in Code Composer Studio. The library is made for Arduino. Is there a way to convert it to Code Composer Studio? Energia is out of the question as this board is not supported by Energia. Is there a way for me to import the Arduino Library get it to work just like how it worked in Arduino?

  • Hi,

    I am not entirely sure what library you want to import but, if it is a simple library (.a, .lib, etc.) built for the device in question, you could simply pass it to the Linker include settings. You also need to match its original build settings (ELF, soft/hard floating point, endianess, Thumb/ARM encoding, etc.) with the project settings in CCS. You will need to also have the proper include files and paths added to your project.

    If you create a new Energia sketch in CCS, you may have a better idea about the configuration of paths and libraries from the project properties

    From the same project, you can also import Energia libraries to the project. 

    We (TI) do not provide support to add Wiring-based files outside of the Energia ecosystem, but hopefully the tips above may help you. 

    Hope this helps,

    Rafael

  • Hi, the library is in .c and .cpp files format. The library is built for Arduino IDE and not really for this board. I am just trying to convert what is done there to be used in CCS. 

    Also, what are build settings and wiring-based files? I am still rather new to stuff like this.

    I will try to see if the Libary can work on energia first

  • Hi,

    Chong Zhi Hen said:
    I will try to see if the Libary can work on energia first

    That would be my first attempt, so the import process in CCSv10 can be done via its own import feature. It will also show the build settings for these files as well. 

    Unfortunately our ability to support the library itself is quite limited. 

    Regards,

    Rafael

  • Hi, 

    I tried importing from Energia but since the board, I am using is not supported by Energia, CCS doesn't allow me to import the file. I would just say no board detected and don't even allow me to browse for the files. What else can I do? I really need to get this Arduino library to work in CCS.

    The Library: https://github.com/felis/USB_Host_Shield_2.0

  • Chong Zhi Hen said:

    Hi, 

    I tried importing from Energia but since the board, I am using is not supported by Energia, CCS doesn't allow me to import the file. I would just say no board detected and don't even allow me to browse for the files. What else can I do? I really need to get this Arduino library to work in CCS.

    The Library: https://github.com/felis/USB_Host_Shield_2.0

    You do realize that Arduino is based on AVR processors, not any TI device, and that the code as such will likely need to be completely re-written to support whichever TI device you intend to target?

    You don't even tell us which TI device you want to use.

    Why not choose a TI device which has USB host capability?

  • Hi,

    Point noted. 

    The board I am using is stated at the start of the thread. 

    LAUNCHXL2-570LC43

    It is a Hercules LaunchPad.

    I am tasked to do connect them together. Not really my idea :/

    I will try and see what I can do. Thanks for your help!

    Ps* I don't think u would know whats need to be rewritten?