DSPRelated.com
Forums

TI & CCS - rts.lib problem? "Error, Don't know how to build file "C:\ti\tutorial[...]""

Started by Toby Newman October 6, 2004
I've just recently moved from SHARC & Visual DSP to TIC6713 with Code 
Composer Studio.

I am working through the tutorials and I have met a problem:

In the second tutorial "Project Management" I follow the instructions 
but when I try to build the project I get:

=====================================================
-------------------------  maxminlibrary.pjt - Debug  
-------------------------
Error, Don't know how to build file "C:\ti\tutorial\dsk6713\maxminmath
\maxminlibrary.cmd"

[maximumvalue.c] "c:\ti\c6000\cgtools\bin\cl6x" -g -q -
fr"C:/ti/myprojects/myapplication/maxminlibrary/Debug" -d"_DEBUG" -
mv6700 -@"maxminlibrary/Debug.lkf" "maximumvalue.c"

[minimumvalue.c] "c:\ti\c6000\cgtools\bin\cl6x" -g -q -
fr"C:/ti/myprojects/myapplication/maxminlibrary/Debug" -d"_DEBUG" -
mv6700 -@"maxminlibrary/Debug.lkf" "minimumvalue.c"

[Archiving...] "c:\ti\c6000\cgtools\bin\ar6x" @"Debug.lkf"
  ==>  new archive 'C:\ti\myprojects\myapplication\maxminlibrary\Debug
\maxminlibrary.lib'
  ==>  building archive 'C:\ti\myprojects\myapplication\maxminlibrary
\Debug\maxminlibrary.lib'

Build Complete,  1 Errors, 0 Warnings, 0 Remarks.
=====================================================

The only place I have to deviate from the instructions is the section 
that states:
"Browse to c:\ti\c6000\cgtools\lib\, select rts.lib and click Open."
Well, I don't have a rts.lib, but I do have these in that directory. I 
chose rts6700.lib. Somewhat randomly.

lnk.cmd
rts.src
rts6200.lib
rts6200e.lib
rts6201.lib
rts6201e.lib
rts6400.lib
rts6400e.lib
rts6700.lib
rts6700e.lib
rts6701.lib
rts6701e.lib

While the CCS documentation is *excellent* when compared to visual DSP, 
they often explain "what to do" rather than "why", which makes 
troubleshooting this alone quite difficult. Is the rts file the problem 
here?

-- 
Toby
My guess from the output is that you are making a archive (.lib) from
the project. In CCS environment the project can be either archive
(.lib) or executable type(.out). You don't attach a command file (or
rts.lib) to the archive project. That is only valid for a
executable(.out) project. Probably the mistake you have made is while
creating the project, you chose the wrong type, i.e. a archive project
instead of an executable project.

Let me know if that is not the case.

Regards
Piyush



Toby Newman <google@asktoby.com> wrote in message news:<MPG.1bcde34aeee69555989b30@localhost>...
> I've just recently moved from SHARC & Visual DSP to TIC6713 with Code > Composer Studio. > > I am working through the tutorials and I have met a problem: > > In the second tutorial "Project Management" I follow the instructions > but when I try to build the project I get: > > ===================================================== > ------------------------- maxminlibrary.pjt - Debug > ------------------------- > Error, Don't know how to build file "C:\ti\tutorial\dsk6713\maxminmath > \maxminlibrary.cmd" > > [maximumvalue.c] "c:\ti\c6000\cgtools\bin\cl6x" -g -q - > fr"C:/ti/myprojects/myapplication/maxminlibrary/Debug" -d"_DEBUG" - > mv6700 -@"maxminlibrary/Debug.lkf" "maximumvalue.c" > > [minimumvalue.c] "c:\ti\c6000\cgtools\bin\cl6x" -g -q - > fr"C:/ti/myprojects/myapplication/maxminlibrary/Debug" -d"_DEBUG" - > mv6700 -@"maxminlibrary/Debug.lkf" "minimumvalue.c" > > [Archiving...] "c:\ti\c6000\cgtools\bin\ar6x" @"Debug.lkf" > ==> new archive 'C:\ti\myprojects\myapplication\maxminlibrary\Debug > \maxminlibrary.lib' > ==> building archive 'C:\ti\myprojects\myapplication\maxminlibrary > \Debug\maxminlibrary.lib' > > Build Complete, 1 Errors, 0 Warnings, 0 Remarks. > ===================================================== > > The only place I have to deviate from the instructions is the section > that states: > "Browse to c:\ti\c6000\cgtools\lib\, select rts.lib and click Open." > Well, I don't have a rts.lib, but I do have these in that directory. I > chose rts6700.lib. Somewhat randomly. > > lnk.cmd > rts.src > rts6200.lib > rts6200e.lib > rts6201.lib > rts6201e.lib > rts6400.lib > rts6400e.lib > rts6700.lib > rts6700e.lib > rts6701.lib > rts6701e.lib > > While the CCS documentation is *excellent* when compared to visual DSP, > they often explain "what to do" rather than "why", which makes > troubleshooting this alone quite difficult. Is the rts file the problem > here?
# Piyush Kaul
> My guess from the output is that you are making a archive (.lib) from > the project. In CCS environment the project can be either archive > (.lib) or executable type(.out). You don't attach a command file (or > rts.lib) to the archive project. That is only valid for a > executable(.out) project. Probably the mistake you have made is while > creating the project, you chose the wrong type, i.e. a archive project > instead of an executable project.
I was actually intending to make a .lib project. The documentation told me to add the command file and rts.lib. I tried it without them and it compiles fine. Must be a documentation mistake... Thanks for your help. Looking inside the command file, it looks like it tells CCS where in the target's memory to load the parts of the program. Things like: .text > IPRAM .bss > IDRAM CCS won't open rts.lib, but dragging it into notepad it looks like a binary. What are those two files for? -- Toby
The linker command (.cmd) file is for telling the linker how the
memory is arranged and where to put the various sections in memory.
The rts.lib is an implemetation of standard 'c' funtions library.
Things like malloc, string functions etc. are part of this. The c
environment initialization is also part of this library.

Regards
Piyush

Toby Newman <google@asktoby.com> wrote in message news:<MPG.1bcf2aaf69871b79989b43@localhost>...
> # Piyush Kaul > > My guess from the output is that you are making a archive (.lib) from > > the project. In CCS environment the project can be either archive > > (.lib) or executable type(.out). You don't attach a command file (or > > rts.lib) to the archive project. That is only valid for a > > executable(.out) project. Probably the mistake you have made is while > > creating the project, you chose the wrong type, i.e. a archive project > > instead of an executable project. > > I was actually intending to make a .lib project. The documentation told > me to add the command file and rts.lib. > > I tried it without them and it compiles fine. Must be a documentation > mistake... Thanks for your help. > > Looking inside the command file, it looks like it tells CCS where in the > target's memory to load the parts of the program. Things like: > > .text > IPRAM > .bss > IDRAM > > CCS won't open rts.lib, but dragging it into notepad it looks like a > binary. > > What are those two files for?