Installing the Project Files and the F28335 Files

  1. Download the Project Files for the version of CCS you plan to use and download the F28335 Files.

    Before using any of the project files or F28335 files, please see the license agreement.
       Segbot Project Files (CCSv3.3)
       Segbot Project Files (CCSv4.2)
       F28335 Files
  2. Unzip the file and place the "F28335" folder in the C: directory. If you want to place this directory elsewhere, you will have to later edit the Segbot project files.
  3. Unzip the file and place the "Segbot" folder in the C: directory. If you want to place this directory elsewhere, or you did not place the "F28335" folder in the C: directory (C:\F28335), continue to step 4. If you placed all of the files from steps 2 and 3 in the recommended locations, you are done installing. See step 7.
  4. If you installed the F28335 folder in the default location (C:\F28335), skip to step 5. Navigate to the location where you installed the "F28335" folder. In the folder, open F28335_Flash_BIOS.cmd, F28335_Flash_nonBIOS.cmd, F28335_RAM_BIOS.cmd, and F28335_RAM_nonBIOS.cmd with an editor such as Notepad++ or wordpad. In the first line of each, replace "C:" with the location you placed the "F28335" folder. For example, the line may read "-l C:\Documents and Settings\user name\My Documents\f28335\common\v110\DSP2833x_headers\cmd\DSP2833x_Headers_BIOS.cmd"
  5. Next, navigate to the directory where you installed the "Segbot" folder. In the "Segbot" folder, open the user_Ink.cmd file with an editor. On line 10 of the code, change the "C:" to the location of your "F28335" folder the same way you did in the previous step.
  6. If you installed the "Segbot" folder in the default location (C:\Segbot), or you plan to use CCS 4.2, see step 7. Navigate to the directory where you installed the "Segbot" folder. In the "Segbot" folder, open the seg423.pjt file with an editor. On line 5 of the code, make sure that ProjectDir="C:\YourLocationHere\Segbot" correctly reads the location of your "Segbot" folder. Next, replace any instance of "C:" with the location of where you installed your "Segbot" folder. Once this is completed, save and you are done installing the F28335 Files and Segbot Project Files.
  7. If you want to try flashing the Segbot with a fixed version of the code without having to download and install Code Composer Studio, see the CodeSkin C2Prog page for more details. Otherwise, see the applicable section for using Code Composer Studio below.

Code Composer 3.3 Setup Instructions

  1. If you are using the Spectrum Digital XDS510LC JTAG and you have not done so already, navigate to this page to download and install the correct drivers for the Spectrum Digital XDS510LC JTAG.
  2. If using the XDS510LC, connect the XDS510LC Emulator to a USB port and then connect the Emulator to the Segbot. If using the XDS100, plug a USB cable into the USB connector on the Segbot board to connect to your computer. Your computer should recognize the XDS100 and install the appropriate drivers automatically.
  3. From the Windows Start menu, open the "Setup Code Composer Studio v3.3" program. Once this launches, remove any saved system configurations. Next, select either "F28335 XDS510USB Emulator" or "F28335 XDS100 Emulator" and click "<< Add" on the menu below. Finally, click "Save & Quit." When prompted, select "Yes" to launch Code Composer Studio on exit.
  4. Open the Segbot project by clicking "Project" and then selecting "Open..." on the main toolbar. Navigate to "C:\Segbot" (or your install directory) and select "seg423.pjt" and click "Open."
  5. If you do not have a 30MHz crystal on your controlCARD, see this page.
  6. Build the project by hitting F7 or selecting "Build" from the "Project" menu.
  7. Make sure the Segbot is connected to CCS (you may need to "Debug->Connect"). Flash the project to the Segbot by opening the "F28xx On-Chip Flash Programmer" tool from the "Tools" menu. Once you open the tool, you will be prompted to configure the clock. As seen in the screenshot below, type 30 (or 20, depending on your controlCARD's crystal) for "OSCCLK (MHz):", /2 for "DIVSEL:", and 10 for "PLLCR Value:". "SYSCLKOUT (MHz)" should read 150.00 MHz (or 100 MHz, depending on your controlCARD's crystal). Click "Open."

  8. Make sure that the next screen appears as it does in the following screenshot and click "Ok."

  9. Check to make sure the On-Chip Flash Programmer is setup as in the screenshot below. If everything looks correct, you may then execute the flashing by clicking "Execute Operation."

Code Composer 4.2 Setup Instructions

  1. Open CCS4.2. You may use any workspace.
  2. On the main toolbar, select 'Project' then 'Import Existing CCS/CCE Eclipse Project'. In the prompt that opens, make sure that 'Select search-directory:' is selected. Next to that, click 'Browse' and navigate to C:\Segbot (or your install directory) and click 'Ok'. This will return you to the prompt screen. You make leave 'Copy projects into workspace' unchecked. Click 'Next' three times and then click 'Finish'.

  3. Next you need to set up the target. If you are using an XDS510LC, connect your XDS510LC JTAG to a USB port, connect the JTAG to the segbot, and power on the segbot. Windows should find the XSD510LC and the Segbot automatically. If you are using the XDS100, use a USB cable to connect to the Segbot board, and power on the robot. In CCS on the main toolbar, select "Target" and then select "New Target Configuration..." Name the target anything, such as Segbot, and make the location "/seg423". Click "Finish" and the configuration file should open automatically. If it does not open automatically, simply double-click it in the project browser in CCS. For "Connection," select "Spectrum Digital XDS510USB Emulator" or "Texas Instruments XDS100v1 USB Emulator" from the dropdown box. For "Device" select "TMS320F28335" from the dropdown box. Finally, click "Save" and you may close this window.

  4. To build the project Ctrl+B or select "Build All" from the "Project" menu on the main toolbar. Finally, flash the project to the Segbot by clicking the "Debug Launch" button on the main toolbar.

Home ♦ Updates ♦ Videos ♦ Contact Information 

Precision. Accuracy. Speed.

University of Illinois at Urbana-Champaign Logo Control Systems Instructional Laboratory
University of Illinois
at Urbana-Champaign
1406 W Green
Urbana, IL 61801-2307