Chapter 3 - Code Composer Studio and the DSK - PowerPoint

Shared by: HC120912023755
Categories
Tags
-
Stats
views:
39
posted:
9/11/2012
language:
English
pages:
18
Document Sample
scope of work template
							Code Composer Studio
  and the DSK6713
          Learning Objectives


   Introduction to Code Composer Studio
    (CCS).
   Introduction to the DSK.
   CCS tutorial.




                                                        2
            Adapted from the work of Dr. Niam Dahnoun
             Code Composer Studio
   The Code Composer Studio (CCS)
    application provides an integrated
    environment with the following capabilities:
        Integrated development environment with an
         editor, debugger, project manager, profiler,
         etc.
        ‘C/C++’ compiler, assembly optimiser and
         linker (code generation tools).
        Simulator.
        Real-time operating system (DSP/BIOS™).
        Real-Time Data Exchange (RTDX™) between
         the Host and Target.
        Real-time analysis and data visualisation.   3
                 Adapted from the work of Dr. Niam Dahnoun
                     Using CCS
   Start CCS by either:
        Using the desktop icons:

      Start Menu -> Programs ->
       Texas Instruments -> Code
       Composer Studio DSK Tools 2
       ('C6000) -> CCStudio
     Or
      Start Menu -> Programs ->
       Texas Instruments -> Code
       Composer Studio 3.1 -> Code
       Composer Studio 3.1*

     *you must have initialized using
       6713 DSK Diagnostics Dr. Niam Dahnoun
               Adapted from the work of
                                               4
     Introduction to the ‘C6713 DSK



   The TMS320C6713 DSP Starter Kit (DSK)
    developed jointly with Spectrum Digital is a
    low-cost development platform designed to
    speed the development of high precision
    applications based on TI´s TMS320C6000
    floating point DSP generation.
   The DSK comes with CCS 3.1 code
    development tools.

                                                          5
              Adapted from the work of Dr. Niam Dahnoun
   DSK6713 Contents
Hardware
      225 MHz ‘C6713 DSP
      TI stereo codec (TLV320AIC23b)
      External Memory
           16 MB SDRAM
           512 kB Flash ROM
      User switches and LED’s
      Daughter card expansion
      Built in USB JTAG Emulator
      Power Supply & USB Cable

Software
      Code Generation Tools
        (C Compiler, Assembler & Linker)
      Code Composer Debugger
      Example Programs & S/W Utilities
           Power-on Self Test
           Flash Utility Program
           Board Confidence Test
           Host access via DLL
           Sample Program(s)
                                                                            6
                                Adapted from the work of Dr. Niam Dahnoun
       Hardware: DSK Connections
(A) Parallel port: The PC’s USB port is connected to the
    USB port on the DSK.
                 USB Cable                                   External
        PC                             DSK                    Power
                                                              Supply

                     Power
                     Supply                            Line-level Output
                                                       Line-level Input

(B) JTAG: An XDS JTAG emulator connected to the PC
    (either internal or external) is connected to the JTAG
    header on the DSK.
                          JTAG                                      External
               XDS




      PC                                     DSK                     Power
                                                                     Supply

                         Power                                 Line-level Output
                         Supply                                Line-level Input
                                                                                   7
                 Adapted from the work of Dr. Niam Dahnoun
                        Hardware: Resets
CCS Reset
 Menu selection:
  DebugDSP Reset
 Resets ‘C6713 DSP
 Causes bootload
  from FLASH which
  overwrites internal
  memory

Absolute Reset
On rare occasions you
might have to:
  Pull power jack
  Pull USB Port




      Apply Power        Reset Pushbutton
       POST runs         Don’t push when CCS
                            is running
                          Does not force FULL
                            system reset
                          To fully reset board,
                            pull power plug

                                                                    8
                        Adapted from the work of Dr. Niam Dahnoun
               Software: PC Host Utilities
DSK Loader                                       dsk6ldr.exe filename.out
   Runs on PC host
   Downloads .out file to DSK memory map
   Stand alone DSK loader for when you want to bypass CCS


FLASH Programming                                hex6x.exe           f.out h.cmd
                                                 flash.exe           f.hex
   First, convert file.out to file.hex
   The flash utility downloads the hex file into the on-DSK FLASH
   Both programs run on the PC host.                     Links\SPRA804.pdf

DSK Confidence Test                              dsk6xtst
   Run from MSDOS prompt
   Command-line utility tests proper installation of the DSK board
   Additionally, it tests: Internal SRAM, SDRAM, FLASH, McBSP, Timers,
    EDMA, LEDs and Audio codec
                                                                                   9
                         Adapted from the work of Dr. Niam Dahnoun
           Software: CCS DSK Utility
        Quick Test
   Run from CCS GEL menu                             General Extension Language (GEL):
   Defined in DSK6713.gel
                                                      An interpretive language that enables
   Non-intrusive test by reading and                 you to write functions to configure the
    writing:                                          IDE and access the target processor.
      LEDs
      Switches
      DSK board revision
   Outputs switch values




                                                                                        10
                     Adapted from the work of Dr. Niam Dahnoun
          Software: (3) DSK Help




   DSK6713 help is available via the Help menu         11
    in CCS. Adapted from the work of Dr. Niam Dahnoun
   Software: PC  DSK Communications
                          CCS uses USB port to control DSP via JTAG port
                          You can use full TI eXtended Dev System (XDS) via 14 pin
                          header connector
                          Communicate from Windows program (C++, VB) via parallel
                          port using Educational DSP Daughter Card


                       Use HPI via Win32 DLL
                                                                            DSP


                                         JTAG

                                                                         JTAG
                                                                        Emulation
                                                      .......
                                                      .......             Port
                                                                                      12
Note: You should not use the parallel port for simultaneous emulation and HPI connection.
                           Adapted from the work of Dr. Niam Dahnoun
        'C6713 DSK Memory Diagram
                                      CE0                       Daughter Card
Program
 Cache                                 SDRAM                     CE2

                                          (8 MB)
            Internal                                               Room
 CPU                     EMIF                                       for
            Memory
                                      CE1                        Expansion
                                     Flash ROM
 Data                                    (256 kB)                CE3
Cache                                   I/O Port


     DSK uses all four External Memory regions
        CE0 for SDRAM
        CE1 for Flash Memory and I/O Port (switches, LED’s, etc.)
        CE2 and CE3 pinned-out to daughter card connector

                                                                                13
                    Adapted from the work of Dr. Niam Dahnoun
DSK6713 Block Diagram




                                               14
   Adapted from the work of Dr. Niam Dahnoun
                    C6713 DSK Memory Map
            TMS320C6713                             ‘C6713 DSK
0000_0000
                                                    8 MB SDRAM
            256 kB Internal
             Program / Data


0180_0000                                             256 kB FLASH
            Peripheral Regs
                                                          CPLD       9008_0000
                                                                      CPLD:
8000_0000                                                              LED’s
            128 MB External
                                                                       DIP Switches
9000_0000                                                              DSK status
            128 MB External
                                                                       DSK rev#
A000_0000                                            Available via     Daughter Card
            128 MB External                         Daughter Card
B000_0000                                             Connector
            128 MB External

FFFF_FFFF                                                                     15
                       Adapted from the work of Dr. Niam Dahnoun
             DSK Hardware Setup

Connect the following cables:
   Connect USB to main board port.
   Connected the USB Audio device
   Audio cables.


Connect the power and observe the Power On Self-Test
     (POST)
If post has been removed from the board
    - Load CCS and run the QuickTest from GEL->Check
     DSK Menu



                                                              16
                  Adapted from the work of Dr. Niam Dahnoun
             DSK Hardware Setup
Alternately: Using the DSK6713

Use the Spectrum Digital Diagnostics Utilities show
    below:




                                                           17
               Adapted from the work of Dr. Niam Dahnoun
Code Composer Studio and the DSK
            - End -

						
Related docs
Other docs by HC120912023755
518projectrubric
Views: 1  |  Downloads: 0
8e4c97b5 fc48 419b 9114 70d325c4569e
Views: 0  |  Downloads: 0
NHS PRIMARY & COMMUNITY DIVISION
Views: 0  |  Downloads: 0
KEY CONTACTS FOR COURSE LEADERS
Views: 1  |  Downloads: 0
25 Jahre - DOC
Views: 2  |  Downloads: 0
Anatomy and Physiology 2012
Views: 5  |  Downloads: 0
K 2 Computer Unit August September
Views: 3  |  Downloads: 0
NEWS RELEASE - DOC 5
Views: 2  |  Downloads: 0