Code Composer Studio

Top  Previous  Next

You need to have the Texas Instruments C6000 code generation tools (C compiler, linker, etc.) installed before you can use Diamond to program your DSPs. The code generation tools come as part of the Code Composer Studio product. Install these as described in the accompanying Texas Instruments documentation.

 

Environment Variables

 

Before you can build Diamond applications, you need to set the following environment variables from the Windows control panel using System/Advanced/Environment Variables.  You can find appropriate values in the file DosRun.bat in the TI installation folder.

 


PATH

defines the DOS search path. It must include the Diamond executable folder, bin, so the installation process will have added it for you. The default for this is C:\3L\Diamond\bin.

 

The path must also include the location of the TI compiler and linker for the C6000.


C6X_C_DIR

defines the default location for the C compiler's #include files and the linker's object libraries. This should have been set up by the installation of the TI compiler.

 

If this is not set, the compiler may pick up the wrong #include files and your programs will not link.


C6X_A_DIR

is similar to C6X_C_DIR above (and usually has the same value) but is used by the assembler.

 

Dragons003If these variables are not set correctly, Diamond will be unable to use the TI tools to build your applications.

 

 

Compatibility

Dragons003Diamond requires complete control over the hardware resources in your system so that it can simplify the creation of efficient multiprocessor applications and perform many optimizations and operations automatically. There are libraries from other suppliers that also assume they can modify low-level features of the hardware (for example, interrupt vectors and device registers).  These libraries can compromise the control that Diamond needs and are therefore fundamentally incompatible with it. For this reason, such packages, and in particular, TI's Chip Support Library, are best avoided or, in rare cases, used with extreme caution.