Setting up CCS v5

From LinuxC6xWiki

Jump to: navigation, search

Setting up CCS v5.0.3.00028 for Linux

Here are the detailed steps to set up on board XDS100USB, Spectrum Digital XDS510USB and Blackhawk XDS560USB (external/mezzanine) JTAG emulation in CCS v5.0.3.00028 in RHEL4 and Ubuntu10.04 LTS.

Contents

CCS v5.0.3 Installation

1. Download the CCS v5.0.3.00028 package for Linux from http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v5

2. Untar the CCS v5.0.3 package and install it as a user

  $ tar –zxvf setup_CCS_5.0.3.00028.tar.gz
  $ ./setup_CCS_5.0.3.00028.bin

Follow the installation instruction to manually run emulation driver script.

Onboard XDS100USB

1. In RHEL4 distribution, add ‘none /proc/bus/usb usbdevfs defaults,devmode=0666 0 0’ in /etc/fstab, restart RHEL4 system. Skip the step in Ubuntu10.04 LTS

2. Run CCS v5.0.3, create a new target configuration.

2.1 Select connection type: Texas Instruments XDS100v1.5 USB emulator
2.2 Select device:
  - EVMC6472 for C6472L EVM, 
  - TMDSEVM6474L for C6474L EVM,
  - TMDSEVM6457 for C6457L EVM,
  - TMS320C6678 for C6678 EVM,
  - TMS320C6670 for C6670 EVM,

Spectrum Digital XDS510USB

1. After CCS v5.0.3 installation, run setup_sd.sh as root to install USB rules.

  $ cd <CCS_BASE_DIR>/emulation/drivers
  $ sudo ./setup_sd.sh

To test if USB rules for SD emulators are set correctly, run SD USB JTAG utility

  <CCS_BASE_DIR>/emulation/drivers$./sdjtag -X portsavailable
  SpectrumDigital USB Jtag Utility
  ** Checking for available USB devices on valid ports.
  $$ XDS510USB PLUS connected on:
  $$ EmuPortAddr=0x510
  $$ EmuSerialNumber=S330612043022426

2. Run CCS v5.0.3, create a new target configuration.

2.1 Select connection: Spectrum Digital XDS510 USB emulator
2.2 Select device:
  - EVMC6472 for C6472L EVM, 
  - TMDSEVM6474L for C6474L EVM,
  - EVMC6474 for C6474 EVM (dual DSP),
  - DSK6455 for C6455 DSK,
  - TMSEVM6457 for C6457L EVM

3. When CCS crashes or is not shut down properly, you may get initialization error when launching target configuration, and not be able to reset JTAG:

  CCS_BASE_DIR>/emulation/drivers$ ./sdjtag -X reset
  SpectrumDigital USB Jtag Utility
  ** Resetting Emulator
    ERROR -- USB channel in use by another application.
    ERROR -- XDS510USB Reset Failed

To clean up XDS510USB's shared resources, run sdjtag with clean option:

  CCS_BASE_DIR>/emulation/drivers$ ./sdjtag -X clean
  SpectrumDigital USB Jtag Utility
  !!!CAUTION!!!
  -- Make sure XDS510USB class emulators are not in use.
  -- Press 'Enter' to continue: ... 
  -- Cleaned opened resources successfully

Blackhawk XDS560USB (external/mezzanine)

1. Run CCS v5.0.3 in Ubuntu10.04 system, create a new target configuration.

1.1 Select connection: Blackhawk USB560-M Emulator (external) or Blackhawk XDS560v2-USB Mezzanine Emulator (mezzanine)
1.2 Select device:
  - EVMC6472 for C6472L EVM, 
  - TMDSEVM6474L for C6474L EVM,
  - EVMC6474 for C6474 EVM (dual DSP),
  - DSK6455 for C6455 DSK,
  - TMSEVM6457 for C6457L EVM
  - TMS320C6678 for C6678L EVM
  - TMS320C6670 for C6670L EVM

NOTE

1. A 60 to 14 pin low voltage adapter is required for XDS510-USB emulation in C6474/C6457 low cost EVMs and EVM6472 board version >= -05.

2. Quick reference


Ubuntu 10.04 LTS 32-bit CCSv5.0.3.0028
Connection Type On-board emulation External XDS510-USB (JTAG) External XDS560-USB (Mezzanine) External XDS100v2-USB
CCS Connection Texas Instruments XDS100v1.5 USB Emulator Spectrum Digital XDS510USB Emulator Blackhawk XDS560v2-USB Mezzanine Emulator Texas Instruments XDS100v2 USB Emulator
C6472L EVM OK NO NO NO
C6474L EVM OK NO OK NO
C6474 EVM NO OK NO OK
C6455 DSK NO OK NO OK
C6457L EVM OK NO OK NO
C6678L EVM OK NO OK NO
C6670L EVM OK NO OK NO


Note: The DSK6455 and C6474 dual DSP EVM on-board emulation is NOT XDS100. A real XDS100 emulator should work on these boards.

Personal tools
Create a book