DSPRelated.com
Forums

How to start with CCS 3.3 for beginner?

Started by fl October 23, 2007
Hi,
For a DSP beginner, I want to begin with software simulation (i.e. no
DSK yet). With the free CCS v3.3, how to begin some exercises?
In its Getting Started Guide, it mentions rts.lib for C5400 series. I
copied .c files of sim54xx directory under tutorial folder to a new
directory under MyProjects folder. After I add rts.lib of C5400 to the
new project, compiling, it says the following wrong.



[testapp0.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/
CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf"
"testapp0.c"
"testapp0.c", line 15: warning: last line of file ends without a
newline

[testapp1.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/
CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf"
"testapp1.c"

[usingcodesense.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -
fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -
@"Debug.lkf" "usingcodesense.c"

[usingcolumnediting.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -
fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -
@"Debug.lkf" "usingcolumnediting.c"

Warning: The project has no cmd file while the Text Linker is selected
[Linking...] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -@"Debug.lkf"
<Linking>
>> error: symbol _main is defined multiple times:
C:\CCStudio_v3.3\MyProjects\practice5401\Debug \anothertestapp.obj and C:\CCStudio_v3.3\MyProjects\practice5401\Debug \testapp.obj
>> error: symbol _main is defined multiple times:
C:\CCStudio_v3.3\MyProjects\practice5401\Debug \anothertestapp.obj and C:\CCStudio_v3.3\MyProjects\practice5401\Debug \testapp0.obj
>> error: symbol _main is defined multiple times:
C:\CCStudio_v3.3\MyProjects\practice5401\Debug \anothertestapp.obj and C:\CCStudio_v3.3\MyProjects\practice5401\Debug \testapp1.obj
>> Compilation failure
Build Complete, 4 Errors, 2 Warnings, 0 Remarks. My question is, for a new beginner, how to quickly simulate a small program with CCS 3.3 free ware? Please help me. Thanks a log.
fl wrote:
> Hi, > For a DSP beginner, I want to begin with software simulation (i.e. no > DSK yet). With the free CCS v3.3, how to begin some exercises? > In its Getting Started Guide, it mentions rts.lib for C5400 series. I > copied .c files of sim54xx directory under tutorial folder to a new > directory under MyProjects folder. After I add rts.lib of C5400 to the > new project, compiling, it says the following wrong. > > > > [testapp0.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ > CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" > "testapp0.c" > "testapp0.c", line 15: warning: last line of file ends without a > newline > > [testapp1.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ > CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" > "testapp1.c" > > [usingcodesense.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - > fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - > @"Debug.lkf" "usingcodesense.c" > > [usingcolumnediting.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - > fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - > @"Debug.lkf" "usingcolumnediting.c" > > Warning: The project has no cmd file while the Text Linker is selected > [Linking...] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -@"Debug.lkf" > <Linking> > >>> error: symbol _main is defined multiple times: > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \anothertestapp.obj > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \testapp.obj > >>> error: symbol _main is defined multiple times: > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \anothertestapp.obj > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \testapp0.obj > >>> error: symbol _main is defined multiple times: > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \anothertestapp.obj > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > \testapp1.obj > > >>>Compilation failure > > > Build Complete, > 4 Errors, 2 Warnings, 0 Remarks. > > > > > My question is, for a new beginner, how to quickly simulate a small > program with CCS 3.3 free ware? Please help me. Thanks a log. >
Try downloading some of the example projects from TI. Your errors look pretty simple to deal with, but the messages could certainly look daunting to a begineer. The lack of new line at the end of the file is simple to fix, just hit enter after the last line of text. Second, it also looks like you didn't specify a .CMD file, which tells the linker where to put things. Third, it appears that you have a main() function declared several times, or at least once in your code and possibly once in the .lib file. The .lib file will likely contain a routine that is meant to act as the reset vector with a call to a function called c_startup() which should in turn call your main() function. Again, I would recommend trying to find an example project and comparing it to yours.
Thanks a lot. Could you give me a sample link to the examples at TI's
website? I browse a while but to no avail. The free CCS 3.3 only gives
rts.lib for C55, not C54 (right?). I want an example which can run
most of the compiling, debug functions. Have a good day.





On Oct 24, 9:07 am, Noway2 <Now...@triad.rr.com> wrote:
> fl wrote: > > Hi, > > For a DSP beginner, I want to begin with software simulation (i.e. no > > DSK yet). With the free CCS v3.3, how to begin some exercises? > > In its Getting Started Guide, it mentions rts.lib for C5400 series. I > > copied .c files of sim54xx directory under tutorial folder to a new > > directory under MyProjects folder. After I add rts.lib of C5400 to the > > new project, compiling, it says the following wrong. > > > [testapp0.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ > > CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" > > "testapp0.c" > > "testapp0.c", line 15: warning: last line of file ends without a > > newline > > > [testapp1.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ > > CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" > > "testapp1.c" > > > [usingcodesense.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - > > fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - > > @"Debug.lkf" "usingcodesense.c" > > > [usingcolumnediting.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - > > fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - > > @"Debug.lkf" "usingcolumnediting.c" > > > Warning: The project has no cmd file while the Text Linker is selected > > [Linking...] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -@"Debug.lkf" > > <Linking> > > >>> error: symbol _main is defined multiple times: > > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \anothertestapp.obj > > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \testapp.obj > > >>> error: symbol _main is defined multiple times: > > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \anothertestapp.obj > > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \testapp0.obj > > >>> error: symbol _main is defined multiple times: > > > C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \anothertestapp.obj > > and C:\CCStudio_v3.3\MyProjects\practice5401\Debug > > \testapp1.obj > > >>>Compilation failure > > > Build Complete, > > 4 Errors, 2 Warnings, 0 Remarks. > > > My question is, for a new beginner, how to quickly simulate a small > > program with CCS 3.3 free ware? Please help me. Thanks a log. > > Try downloading some of the example projects from TI. > > Your errors look pretty simple to deal with, but the messages could > certainly look daunting to a begineer. > > The lack of new line at the end of the file is simple to fix, just hit > enter after the last line of text. > > Second, it also looks like you didn't specify a .CMD file, which tells > the linker where to put things. > > Third, it appears that you have a main() function declared several > times, or at least once in your code and possibly once in the .lib file. > The .lib file will likely contain a routine that is meant to act as > the reset vector with a call to a function called c_startup() which > should in turn call your main() function. > > Again, I would recommend trying to find an example project and comparing > it to yours.- Hide quoted text - > > - Show quoted text -
fl wrote:
> Thanks a lot. Could you give me a sample link to the examples at TI's > website? I browse a while but to no avail. The free CCS 3.3 only gives > rts.lib for C55, not C54 (right?). I want an example which can run > most of the compiling, debug functions. Have a good day. >
Try this one: http://focus.ti.com/dsp/docs/dspfindtoolswbytooltype.tsp?sectionId=3&tabId=2092&toolTypeId=43&familyId=44 The C28 peripheral examples will also provide you with a project framework, as will the dsp/BIOS examples.
> > > > > On Oct 24, 9:07 am, Noway2 <Now...@triad.rr.com> wrote: > >>fl wrote: >> >>>Hi, >>>For a DSP beginner, I want to begin with software simulation (i.e. no >>>DSK yet). With the free CCS v3.3, how to begin some exercises? >>>In its Getting Started Guide, it mentions rts.lib for C5400 series. I >>>copied .c files of sim54xx directory under tutorial folder to a new >>>directory under MyProjects folder. After I add rts.lib of C5400 to the >>>new project, compiling, it says the following wrong. >> >>>[testapp0.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ >>>CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" >>>"testapp0.c" >>>"testapp0.c", line 15: warning: last line of file ends without a >>>newline >> >>>[testapp1.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g -fr"C:/ >>>CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" -@"Debug.lkf" >>>"testapp1.c" >> >>>[usingcodesense.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - >>>fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - >>>@"Debug.lkf" "usingcodesense.c" >> >>>[usingcolumnediting.c] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -g - >>>fr"C:/CCStudio_v3.3/MyProjects/practice5401/Debug" -d"_DEBUG" - >>>@"Debug.lkf" "usingcolumnediting.c" >> >>>Warning: The project has no cmd file while the Text Linker is selected >>>[Linking...] "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -@"Debug.lkf" >>><Linking> >> >>>>> error: symbol _main is defined multiple times: >> >>> C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\anothertestapp.obj >>> and C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\testapp.obj >> >>>>> error: symbol _main is defined multiple times: >> >>> C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\anothertestapp.obj >>> and C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\testapp0.obj >> >>>>> error: symbol _main is defined multiple times: >> >>> C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\anothertestapp.obj >>> and C:\CCStudio_v3.3\MyProjects\practice5401\Debug >>>\testapp1.obj >> >>>>>Compilation failure >> >>>Build Complete, >>> 4 Errors, 2 Warnings, 0 Remarks. >> >>>My question is, for a new beginner, how to quickly simulate a small >>>program with CCS 3.3 free ware? Please help me. Thanks a log. >> >>Try downloading some of the example projects from TI. >> >>Your errors look pretty simple to deal with, but the messages could >>certainly look daunting to a begineer. >> >>The lack of new line at the end of the file is simple to fix, just hit >>enter after the last line of text. >> >>Second, it also looks like you didn't specify a .CMD file, which tells >>the linker where to put things. >> >>Third, it appears that you have a main() function declared several >>times, or at least once in your code and possibly once in the .lib file. >> The .lib file will likely contain a routine that is meant to act as >>the reset vector with a call to a function called c_startup() which >>should in turn call your main() function. >> >>Again, I would recommend trying to find an example project and comparing >>it to yours.- Hide quoted text - >> >>- Show quoted text - > > >