Difference: SctDSPTutorial (4 vs. 5)

Revision 52009-02-04 - TomBarber

Line: 1 to 1
 
META TOPICPARENT name="AtlasSiliconRodGroup"
<!-- This is the default ATLAS template. 
Please modify it in the sections indicated to create your topic! In particular, notice that at the bottom there are some sections that must be filled for publicly accessible pages.
Line: 36 to 36
 
  • Copy the folder over, and then run the intall program. (nb, this will only work as sctroddq, who has install rights)
Then follow installation instructions.
Changed:
<
<

Configuring Code Composer Studio

This describes how to set up CCS to compile the DSP code.
  • First, start the CCS setup.
  • Either click the desktop icon, or via the start menu:
    startSetupCCS.JPG
  • Now select the device relevant to the DSP.
  • We use the following for the ROD:
  • Master: C6201 Device Simulator, Little Endian, Map 1
  • Slaves: C6713 Device Simulator, Little Endian
  • Select the device and add it to the project:
    setupCCS.JPG
  • Save and quit, when prompted, start CCS on exit.

Starting Code Composer Studio

  • If you want to start CCS later, click the desktop icon:
    ccsIcon.JPG
  • Or start it via the start menu.
>
>
You can probably skip this if CCS has already been installed and go directly to the section SctDSPTutorial#The_DSP_Project.
 

Setting up CCS for DSP Code

There are a number of obscure and magical things you will need to do get the DSP to actaully compile
Line: 76 to 60
 
  • Download and install the latest version for you platform.
  • NILWCVIRTE851.exe: Alternatively get Lab Windows Run-Time here.
Added:
>
>

Compiler Versions

The version of the Texas Instruments Compiler used to develop much of the code was version 5.1.0, but in Code Composer Studio (installed in SR1), version 6 is used. This is unfortunately not really compatible with the set of libraries used, and an error appears similar to:
[Linking...] "C:\CCStudio_v3.3\C6000\cgtools\bin\cl6x" -@"ROD.lkf"
<Linking>
 
undefined                        first referenced
 symbol                              in file
---------                        ----------------
__strasgi                        
c:\\ti\\tf\\obj6\\masterPrimFuncts.obj
A dirty way to get round this problem is to replace the new compiler with the old version, which has been put here: NILWCVIRTE851.exe. You need to unzip this directory and place it in the C:\CCStudio_v3.3\C6000 directory. Ensure you make a back up of the old directory first!
 

Checking Out From CVS

At the moment the SCT CVS code is on lxplus, it would be nice to move it over to central ATLAS CVS, but this will be a bit of
Line: 91 to 88
 
  • This will be in sync with the project file in CVS, or you can change the path yourself manually.

The DSP Project

Changed:
<
<
You should now have everything ready to compile the DSP Code, so start CCS. First you will need to open the project.
>
>
You should now have everything ready to run Code Composer Studio, and first you need to configure it to tell it which devices to use:

Configuring Code Composer Studio

This describes how to set up CCS to compile the DSP code.
  • First, start the CCS setup.
  • Either click the desktop icon, or via the start menu:
    startSetupCCS.JPG
  • Now select the device relevant to the DSP.
  • We use the following for the ROD:
  • Master: C6201 Device Simulator, Little Endian, Map 1
  • Slaves: C6713 Device Simulator, Little Endian
  • Select the device and add it to the project:
    setupCCS.JPG
  • Save and quit, when prompted, start CCS on exit.

Starting Code Composer Studio

  • If you want to start CCS later, click the desktop icon:
    ccsIcon.JPG
  • Or start it via the start menu.
  • Now you will need to open the project.
 
  • In CCS, Click on Project -> Open
  • Go to the directory C:\your\install\dir\RodDaq\Dsp\
Changed:
<
<
  • Open rodRun_sct.pjt for the master, sdsp6713_sct.pjt for slaves.
>
>
  • Open rodRun_sct.pjt for the master, sdsp6713_sct.pjt for slaves.
 

Compiling the Code

To compile the DSP code, click on one of the compilation buttons:
  • The Compile buttons in CCS:
Line: 141 to 157
 
<!--For significant updates to the topic, consider adding your 'signature' (beneath this editing box)-->
Major updates:
Changed:
<
<
-- TomBarber - 27 Nov 2008
>
>
-- TomBarber - 03 Feb 2009
 
META FILEATTACHMENT attachment="startSetupCCS.JPG" attr="" comment="How to start the CCS setup" date="1227809944" name="startSetupCCS.JPG" path="startSetupCCS.JPG" size="36590" stream="startSetupCCS.JPG" user="Main.TomBarber" version="1"
META FILEATTACHMENT attachment="setupCCS.JPG" attr="" comment="" date="1227810212" name="setupCCS.JPG" path="setupCCS.JPG" size="78524" stream="setupCCS.JPG" user="Main.TomBarber" version="1"
Line: 150 to 167
 
META FILEATTACHMENT attachment="compile.JPG" attr="" comment="The Compile buttons in CCS" date="1227816285" name="compile.JPG" path="compile.JPG" size="14326" stream="compile.JPG" user="Main.TomBarber" version="1"
META FILEATTACHMENT attachment="rodts.zip" attr="" comment="Directory structure to compile code" date="1227817737" name="rodts.zip" path="rodts.zip" size="802" stream="rodts.zip" user="Main.TomBarber" version="1"
META FILEATTACHMENT attachment="NILWCVIRTE851.exe" attr="" comment="National Instruments LabWindows Run-Time" date="1228752941" name="NILWCVIRTE851.exe" path="NILWCVIRTE851.exe" size="48982560" stream="NILWCVIRTE851.exe" user="Main.TomBarber" version="1"
Added:
>
>
META FILEATTACHMENT attachment="cgtools_31.zip" attr="" comment="TI Compiler from version 3.3" date="1233758442" name="cgtools_31.zip" path="cgtools_31.zip" size="12076446" stream="cgtools_31.zip" user="Main.TomBarber" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback