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.

Object files have incompatible formats

I am trying to run a simple programe in TMS320C6713 using CCs V4.2. But I am getting Object files have incompatible formats error. I dont know which library files to be added. Kindly help me to clear the error.

I am new to CCS and this is my first programe

Thanks ,

Balaji Dhayabaran

  • Balaji,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    Is there a reason you did not move to CCSv5? It is the latest and has the best tools. I do not know about any issues with C6713, but I have not tried it, either.

    Is there a reason you are using C6713 instead of a newer, faster, cheaper DSP like the C6748? It is a great choice and has some good low-cost development boards available.

    Start with a known working example project, like one of the ones from CCS's project examples when you create a new project. If you have tried to manually start putting things together into a new project without knowing whether they are compatible, that could explain why you get this message.

    Regards,
    RandyP

  • Thanks for replying Randy,

    I am using windows 7 as my operating system.  I came to know that earlier versions of CCS are not supported in windows 7, So I started using CCS V4. Our college has some C6713 DSK boards, I am helping the students to do project in the DSK6713, and that is the reason why I am using c6713.

    I find working with CCS v4 is very challenging and i like it. If I am good in programming in CCS v4 I think I can do well in other versions also. Coming to the problem, I have installed CCS V4 in my Laptop and when I started doing my first project ( I followed the steps given in wiki pages) CCS was showing some errors like "undefined function".

    Then I found out that I have missed adding the libraries in the INCLUDE folder. Now I have some questions in my mind. 

    1. If Library files has to be added to the include folder before running a project, then why it has not been added during installation? Is there any problem in my installation?( and there is nothing mentioned in the wiki pages about adding the library files)

    2. Some header files and library files( like CSL)  were not in my hard disk even after installing CCS v4( like DSK6713.h, DSK6713_init.h). I had to download it from the internet and I am using it. Will it create compatibility problems?

    3. How can I find out which Library files and header files are required for a particular project?

  • Balaji,

    I recommend CCSv5. I have not used it with the DSK6713, but CCSv5 is based on the most recent version of Eclipse and has the best tools between over CCSv4.

    Balaji Dhayabaran said:

    1. If Library files has to be added to the include folder before running a project, then why it has not been added during installation? Is there any problem in my installation?( and there is nothing mentioned in the wiki pages about adding the library files)

    Some library files are included by the starter project or by the compiler. Other library files are added manually, and some are added through the RTSC configuration. You will have to be more specific about a Wiki page that you are asking about.

    Balaji Dhayabaran said:

    2. Some header files and library files( like CSL)  were not in my hard disk even after installing CCS v4( like DSK6713.h, DSK6713_init.h). I had to download it from the internet and I am using it. Will it create compatibility problems?

    I cannot say yes or no. There is no general answer to this. You should be able to accomplish what you want to do, yes. Will it be trivial in all possible cases, no.

    Balaji Dhayabaran said:

    3. How can I find out which Library files and header files are required for a particular project?

    If you are moving from a CCS 3.3 project, the Import process may help. And you can find the projects used there by looking at the .pjt file. For any new project you create, you will need to know where a new function comes from. If it is in the BIOS or RTS library, then it will be included already. If it is in the board manufacturer's library, then you may need to add it.

    Regards,
    RandyP

  • Is there any other way that I can solve this problem without upgrading CCS V4 to CCSV5 and also without changing the processor?

    Where can I get CCSV5?

  • Balaji,

    There is not enough information in your posts to directly address your subject problem. "Incompatible formats" means you did something wrong, from including the wrong library files to using the wrong compiler settings, or not having CCS or your DSK configured correctly. You could try providing the information needed to debug your problem. The best solution, and quickest for you to get to a working project is still the following.

    RandyP said:
    Start with a known working example project, like one of the ones from CCS's project examples when you create a new project. If you have tried to manually start putting things together into a new project without knowing whether they are compatible, that could explain why you get this message.

    Start with "Hello, world" then try a DSP/BIOS example if you will be using DSP/BIOS. Then look at the other examples provided by CCS and look through all of the settings to learn how it works. Then build on top of that working project to get to your project.

    Also, you can look through the Wiki for Getting Started Guides (GSG) for CCS. There are examples and tutorials for building new projects.

    To get CCSv5, you would follow my advice in my first post, above, and go to the TI Wiki Pages to search for CCSv5. You can download it from there. It may also be available through TI.com.

    Regards,
    RandyP