Difference between revisions of "EE586L/CCSv4 FAQ"

From WikiBiron
(Project Properties)
Line 21: Line 21:
 
Below are the common project property settings used in the book examples. If you are having compiling/linking issues check these settings.  
 
Below are the common project property settings used in the book examples. If you are having compiling/linking issues check these settings.  
  
Access the project properties by selecting '''Project->Properties'''. All of the following settings are located under the '''C/C++ Build''' tab located on left side of the Properties dialog box, and under the '''Configuration Settings->Tool Settings" tab in the center of the dialog box.  
+
Access the project properties by selecting '''Project->Properties'''. All of the following settings are located under the '''C/C++ Build''' tab located on left side of the Properties dialog box, and under the '''Configuration Settings->Tool Settings"' tab in the center of the dialog box.  
 
* '''C6000 Compiler'''
 
* '''C6000 Compiler'''
 
** '''Basic Options''':
 
** '''Basic Options''':
Line 33: Line 33:
 
*** '''..\dsk6416\include''' or '''...\dsk6713\include'''
 
*** '''..\dsk6416\include''' or '''...\dsk6713\include'''
 
*** '''..\C6400\imglib\include''' if using the IMGLIB
 
*** '''..\C6400\imglib\include''' if using the IMGLIB
 +
* '''C6000 Linker'''
 +
** '''File Search Path''':
 +
*** '''Add <dir> to library search path''' - the lib directories of all the libraries used in the project
 +
*** Note: you must locate these folders specifically on your PC as the locations might vary
 +
*** '''..\csl\lib'''
 +
*** '''..\dsk6416\lib''' or '''...\dsk6713\lib'''
 +
 +
 +
== Common Compling/Linking Errors ==
 +
Note: these errors are due to incorrect project property settings. If you are not putting your semicolons in, you won't find your answers here!
 +
 +
* ERROR: Linking error which mentions FAR memory access
 +
* Solution:
 +
** '''Project Properties -> C\C++ Build -> C6000 Compiler -> Runtime Model Options'''
 +
*** '''Constant access model''' - Set to Far
 +
*** '''Data access model''' - Set to Far

Revision as of 10:09, 1 February 2011

Code Composer Studio v4 Frequently Asked Questions

Below are solutions to some of the commonly encountered problems with CCSv4.

As this is a new and completely different version of CCS the TAs are still learning the software as well. If you don't see your question answered here please email the TAs who will be glad to help and add your question to the pool of knowledge.

Importing Legacy CCS v3.x Projects

The textbook provides many example projects showing the functionality of the board. However, these examples were written for a previous iteration of Code Composer Studio.

Follow these steps to import legacy projects and convert them to the project format of CCSv4:

  • Launch CCS and select a workspace.
    • Workspaces are used to store your personal projects, so having an individual workspace prevents other groups from modifying your projects.
    • Create a workspace other than the default, such as, EE586_Group01 or your name.
  • Select Project -> Import Legacy CCSv3.3 Project
    • In the Dialog box that appears, browse for the project file that you would like to import and select the Copy projects into workspace radio button. Click Next
    • At the next screen select the default Code Generation Tools (already selected). Click Next.
    • On the Enable DSP/BIOS Tools screen select Automatically determine DSP/BIOSv5.x support enablement.
    • On the Set Advance Options screen do not check the box for using a common root.

Project Properties

Below are the common project property settings used in the book examples. If you are having compiling/linking issues check these settings.

Access the project properties by selecting Project->Properties. All of the following settings are located under the C/C++ Build tab located on left side of the Properties dialog box, and under the Configuration Settings->Tool Settings"' tab in the center of the dialog box.

  • C6000 Compiler
    • Basic Options:
      • Target Processor Version - should be 6700 or 6400 for the C6713 and C6416 boards, respectively
    • Predefined Symbols:
      • Pre-define NAME - either "CHIP_6713" or "CHIP_6416", also some projects use "DEBUG" or "_DEBUG"
    • Include Options:
      • Add dir to #include search path - the include directories of all the libraries used in the project must be included here
      • Note: you must locate these folders specifically on your PC as the locations might vary
      • ..\csl\include
      • ..\dsk6416\include or ...\dsk6713\include
      • ..\C6400\imglib\include if using the IMGLIB
  • C6000 Linker
    • File Search Path:
      • Add <dir> to library search path - the lib directories of all the libraries used in the project
      • Note: you must locate these folders specifically on your PC as the locations might vary
      • ..\csl\lib
      • ..\dsk6416\lib or ...\dsk6713\lib


Common Compling/Linking Errors

Note: these errors are due to incorrect project property settings. If you are not putting your semicolons in, you won't find your answers here!

  • ERROR: Linking error which mentions FAR memory access
  • Solution:
    • Project Properties -> C\C++ Build -> C6000 Compiler -> Runtime Model Options
      • Constant access model - Set to Far
      • Data access model - Set to Far