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.

DLL (*. Dll) Create a file in Code Composer Studio V5.5. And to import.

Other Parts Discussed in Thread: TMS320DM648

I want to create a dynamic link library using the C6000(from CCS v5.5), and want to use the dynamic link library in other projects.
See the information on this site.(http://processors.wiki.ti.com/index.php/C6000_Dynamic_Linking)

But I do not know how to create, use that.
C6000 linker option was set to --dynamic=lib -o dll_hello.dll. files(.dll) have been created. However, I do not know how to import/export.
I want more examples. 

Please help me.

  • My guess is a static link library will be good enough for your needs.  If I'm right, that is much easier to set up than a dynamic link library.  

    Exactly when, within the system build and execution flow, do you need to link with this library?  Can all of the linking be done before any execution begins?

    Thanks and regards,

    -George

  • I linker option "- dynamic = lib-o dll_hello.dll" have been declared. 

    file(dll_hello.dll) has been created.

    Shown below, was to build the source.

    Thus was created to try to use a dynamic link library.

    Other projects (from CCS) will try to use the library.

    Below as the source of a dynamic link library using the "hello, world" I want to output.

    However, the I do not know how to use the dll file.(How to Link???)

    In addition, I do not know what use it freely.

    Thank you for your answer.

  • Im InJong said:
    Other projects (from CCS) will try to use the library.

    Will these other projects link with the library at build time?  That is the normal case.  If so, then a static library is good enough to solve your problem.

    The general idea is to create a library sub-project that is referenced by your other projects.  When creating the library sub-project, you set the project Output Type to Static Library.  Please see the screen shot I attach below.  See this wiki article for how other projects can refer to a library sub-project.

    Thanks and regards,

    -George

  • Generally used in reference to a static library.

    But I do not want to use a static library.

    I would like to know whether you can build a dynamic library.

    Also, in another CCS project(C6000), I want to know if you can references.

    Comments on the use of a static library instead of a dynamic library, please comment on how to use.

    Thank you.

  • Can only create a static library output type?

    Does the ability to create dynamic?

    I was already using a static library.

    But I want to try using a dynamic library.

  • Im InJong said:
    I want to try using a dynamic library.

    I presume you are interested in the Lightweight (Bare Metal) Dynamic Linking Model and not the Linux Dynamic Linking Model.  This lightweight model "is intended to support an application environment in which a Real Time Operating System (RTOS) is loaded and running on a DSP processor."   Which RTOS do you plan to use?

    Thanks and regards,

    -George

  • TMS320DM648(DSP) is used. And CCS provided by the DSP/BIOS(v5.xx) to create a project using the idea.

    However, there is little information about the Dynamic Link library, how difficult is solicited to assist you.

    Create a project as shown below, applied to the DLL files created in other CCS projects can you do?

    Dll file that I can make??? How to apply make??? It is the most curious.


    Thanks.

  • Also in the http://e2e.ti.com/support/development_tools/compiler/f/343/p/1019041/reply.aspx which is not well understood.

    When you create a DLL file, as shown below C project will need to create the project?

    Or should I make CCS project?

    I await your response very. I'll wait.

  • We do not have any examples of using BIOS with DLL's.  I don't think anyone has made that combination work.  At this point, I'll say we don't support it.

    Thanks and regards,

    -George

  • Dear George

     

    1. I read "C6000 Dynamic Linking" in TI-Wiki. And I saw the picture that describes converting the static DSP Application into the Lightweight Dynamic Linking Model. And there is the word RTOS(DSPBIOS) in the picture. I am confuse. Is the RTOS in the picture DSPBIOS? Which is RTOS that can use DLL? GPPOS or DSPBIOS? What you want to say is 'It is impossible to use DLL with DSPBIOS'?

    2. What is the best RTOS to use DLL with DSP? except Linux. And is there some case already done?

     

    Thank you and best regards.

    Cho.hyungeun.