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.

Trying to locate rtssrc.zip for C6713

Other Parts Discussed in Thread: CCSTUDIO

 

Hi,

Can someone tell me where I can find the rtssrc.zip file please ? I have checked the C6000\cgtools\lib folder but it is not there. I am trying to build my own libraries for my project and apparently I need this file to build them.

Any feedback will be greatly appreciated.

Regards...

  • Which version of the compiler are you using?

    John

  • Hi John,

    I am using the compiler in CCS 3.1.

    Regards...

  • Prior to CCSv4, the runtime sources were in the rts.src archive file. You will find this file in C6000\cgtools\lib folder.

    Please take a look at this page for information on how to rebuild the runtime library: http://processors.wiki.ti.com/index.php/How_to_rebuild_the_C6000_RTS

    More details on the command line options for the archiver can be found in the C6000 Assembly Language Tools Users Guide. Regarding the library build utility (mk6x), the process for rebuilding the runtime library has been modified in newer versions of the compiler tools, but you can still find information on the options supported by mk6x by running mk6x --help on a command prompt, or in the CCS Online Help.

     

  •  

    Hi Aarti.

    I really appreciate the thorough response. Your feedback has been very useful. Many thanks.

    Regards...

  •  

    Hi,

    I have one more question.

    I tried to buils a simple library using a couple of user-defined functions. The library was built successfully with no warnings and no errors. However, when I called one of the library functions in another project, I received the following error : 

    "main.c", line 1076: error: a value of type "int" cannot be assigned to an entity of type "GGPhampData"

    The library function return value was indeed GGPhampData. Also, in the calling function this return value is assigned to a GGPhampData type for compatibility. (There is no casting in the calling function at all.)

    The above error tells me that the return value of the library function is automatically interpreted as 'int' type for some strange reason.

    I must also add that I have used the same functions in the library in the same project with no problem until now. However, calling one of these functions from a library seems to be the culprit.

    Due to this particular error, I am not sure if the input arguments with user-defined types will be interpreted correctly either. I suspect that such arguments may be quietly casted into some incompatible types inside the library, which may also cause problems.

    I think during the library build process I am missing an option which may be the source of the issue here. I have included the build process log below in case it provides some clues. (Note that mk6x is not used during the build process at all as was mentioned by Aarti in one of the earlier posts. Could that be the issue ?)

    "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -fr"D:/Software/dspsupport/Debug" -d"_DEBUG" -mv6700 -@"Debug.lkf" "support.c"

    [Archiving...] "C:\CCStudio_v3.1\C6000\cgtools\bin\ar6x" @"Debug.lkf"
      ==>  new archive 'D:\Software\dspsupport\Debug\dspsupport.lib'
      ==>  building archive 'D:\Software\dspsupport\Debug\dspsupport.lib'

    Does anybody have an idea on why this may be happaning and how it can be rectified?

     

    Regards...

     

     

  • In the file that gets the error be sure that a declaration of the called function is visible at the point of the call.  (This is normally done by #include'ing the header (.h) file associated with the library.)

    If no such declaration is visible the C standard says that the returned value is assumed to be type of type 'int'.  Thus a missing declaration would account for the behavior you are seeing.

     

  • Hi Paul,

    Thanks for your feedback. You are right - the problem was a simple missing declaration. I tried the library now and it works just fine.

     

    Regards...

  • Hi all,

    Can you tell me a simple method of making a new library file because I went through the entire pff document but I dont know where to enter the archiver commands. Do I have to modify rtssrc file for this and write the command in this file. Please help

     

    Regards

    Habib Ali

  • Habib Ali Subhan said:

    Can you tell me a simple method of making a new library file because I went through the entire pff document but I dont know where to enter the archiver commands. Do I have to modify rtssrc file for this and write the command in this file. Please help

    Are you referring to the archiver commands described in this page to extract the runtime sources? If so, these are run on a Windows command prompt.

  • I am able to build a library file through archiving my .obj files but the problem is the library file is too big it is 2MB in size and it includes 14 .obj files. Is it normal?????? and further more it is also giving error that a.lib not found