MATLAB Link for Code Composer Studio Development Tools    

Loading Files into CCS

You have established the link to CCS IDE and to target. Using three functions you learned about the target, whether it was running, its type, and whether CCS IDE was visible. Now the target needs something to do.

In this tutorial section you load the executable code for the target CPU in CCS IDE. For this tutorial, the MATLAB Link for Code Composer Studio includes a Code Composer Studio project file. With the following commands in the tutorial you locate the tutorial project file and load it into CCS IDE. The open function directs Code Composer Studio to load a project file or workspace file

After you have executable code running on your target you can exchange data blocks with the target. This is the purpose of the links for CCS IDE:

  1. To load the appropriate project file to your target, do one of the following depending on the class of your target processor.
  1. C54xx processor family--Type the following commands to load the project file. Notice that these functions also change your CCS IDE working directory.

    C6x11 processor family--Type the following commands to load the project file. Notice that these functions also change your CCS IDE working directory.

    C6x0x processor family--Type the following commands to load the project file. Notice that these functions also change your CCS IDE working directory.

  1. Next, build the target executable file in CCS IDE. Select Project->Build from the menu bar in CCS IDE.
  1. You may get an error here related to one or more missing .lib files. If you installed CCS IDE in a directory other than the default installation directory, browse in your installation directory to find the missing file or files. Use the path in the error message as an indicator of where to find the missing files.

  1. Type load(cc,'a.out') to load the target execution file.
  2. You now have a loaded program file and associated symbol table. To determine the memory address of the global symbol ddat, type
  1. Your values for ddata may be different depending on your target.

  1. To convert ddata to a hexadecimal string that contains the memory address and memory page, type
  1. dec2hex(ddata)

    MATLAB displays

    where the memory page is 0x00000000 and the address is 0x80000010.


  Creating and Querying Links for CCS IDE Working with Links and Data