Professional Documents
Culture Documents
Learning Objectives
Introduction to Code Composer Studio (CCS). Installation and setup of CCS. Introduction to the DSK. Laboratory.
Chapter 3, Slide 2
The Code Composer Studio (CCS) application provides an integrated environment with the following capabilities:
Chapter 3, Slide 3
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.
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Alternatively:
Windows Start Menu -> Programs -> Texas Instruments -> Code Composer Studio 2 (C6000) -> Setup Code Composer Studio. Run cc_setup.exe located in: c:\ti\cc\bin\
Chapter 3, Slide 4
Note: If you dont see the Import Configuration dialog box you should open it from the menu using: File:Import.
Chapter 3, Slide 5
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
You can clear the previous configuration by selecting the configuration you wish to clear and clicking the clear button. Next select a new configuration that you would like to add:
Select the C6x11DSK Port x y Mode. The port number, x, and port mode, y, depend on your PC setup.
Chapter 3, Slide 6
If you do not know your configuration then you can select it automatically using the Configure C6x11 DSK Utility.
Chapter 3, Slide 7
Chapter 3, Slide 8
Using CCS
Chapter 3, Slide 9
Troubleshooting
Check that the DSK is connected properly and powered up. Check if the port address and mode is correct (See Slide 7).
Chapter 3, Slide 10
The C6711 DSK provides a powerful, low-cost development environment. The DSK comes with CCS code development tools (does not include the simulator). A laboratory at the end of this section takes you through the DSK setup and shows you how to run the confidence test to check if it is working correctly.
Chapter 3, Slide 11
DSK6711 Contents
Hardware (Schematics)
150 MHz C6711 DSP TI 16-bit A/D Converter (AD535) External Memory
LEDs Daughter card expansion Power Supply & Parallel Port Cable
Software
Power-on Self Test Flash Utility Program Board Confidence Test Host access via DLL Sample Program(s)
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 12
The daughter card interface socket provides a method for accessing most of the C6711 DSP for hardware extension.
1.8V Power Supply 16M SDRAM 128K FLASH Daughter Card I/F (EMIF Connector)
TMS320C6711
Power Jack
Power LED
Reset Emulation JTAG Controller
Three User LEDs 16-bit codec (A/D & D/A) Line Level Input (microphone) Line Level Output (speakers)
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 13
Power Supply
(B) JTAG: An XDS JTAG emulator connected to the PC (either internal or external) is connected to the JTAG header on the DSK.
PC
XDS
JTAG
DSK
Power Supply
Chapter 3, Slide 14
There are three LEDs to provide the user with feedback from the test procedure. The test program (stored in the FLASH memory, code available on the DSK CD-ROM) runs every time DSK is powered on and reset.
LED 3 LED 2 0 0 0 0 0 1 0 1 1 0 1 0 1 1 1 1 BLINK ALL LED 1 Description 0 Start state 1 DSP internal SRAM test 0 External SDRAM test 1 DSP McBSP0 loop back test 0 External codec read/write test 1 External codec tone generation test 0 External LED and DSP timer test 1 Unused available for future test use All tests completed successfully
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Test 0 1 2 3 4 5 6 7
Chapter 3, Slide 15
Absolute Reset On rare occasions you might have to: Pull power jack Pull parallel port
Reset Pushbutton Dont push when CCS is running Does not force FULL system reset To fully reset board, pull power plug
Power On Self Test (POST) Counts 1 - 7 4: mic input spkr out 5: sinewave spkr out Dont start CCS until end (all 3 LEDs flash at the end) If switches are set to 0100, a fast version of POST is run
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 16
C6711 DSK
16 MB SDRAM
64 kB Internal
(Program or Data)
0180_0000
On-chip Periph
128 MB External
128 MB External Available via Daughter Card Connector
128 MB External
128 MB External
FFFF_FFFF
Chapter 3, Slide 17
Origin 0x00000000 0x01800000 0x01840000 0x01844000 0x01844020 0x01845000 0x01848200 0x01848240 0x01848280 0x018482c0 0x01880000 0x018c0000 0x01900000 0x01940000 0x01980000 0x019c0000 0x01a00000 0x01a0ffe0 0x02000000 0x02000020 0x30000000 0x34000000 0x80000000 0x90000000 0x90080000 0xA0000000 0xB0000000
Length 0x00010000 0x00000024 0x00000004 0x00000020 0x00000020 0x00000008 0x00000010 0x00000010 0x00000010 0x00000010 0x00000004 0x00000028 0x00000028 0x0000000c 0x0000000c 0x0000000c 0x00000800 0x00000020 0x00000014 0x00000014 0x04000000 0x04000000 0x01000000 0x00020000 0x00000004 0x10000000 0x10000000
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
flash.exe
f.out h.cmd
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 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
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 19
Quick Test
Run from CCS GEL menu Defined in dsk6xinit.gel Non-intrusive test by reading and writing: LEDs Switches DSK board revision Outputs switch values
General Extension Language (GEL): An interpretive language that enables you to write functions to configure the IDE and access the target processor.
Chapter 3, Slide 20
DSK6711 help is available via the Help menu in CCS. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 3, Slide 21
DSP
JTAG
....... .......
Chapter 3, Slide 22
Note: You should not use the parallel port for simultaneous emulation and HPI connection.
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
dsk6x_hpi_read( )
dsk6x_hpi_write( ) dsk6x_generate_int( )
Chapter 3, Slide 23
Daughter Card
CE2
SDRAM
(8 MB)
CPU
Data Cache
EMIF
Flash ROM
(256 kB)
CE1
I/O Port
DSK uses all four External Memory regions CE0 for SDRAM CE1 for Flash Memory and I/O Port (switches, LEDs, etc.) CE2 and CE3 pinned-out to daughter card connector
Chapter 3, Slide 25
Chapter 3, Slide 26
C6713 DSK
8 MB SDRAM
256 kB Internal
Program / Data
0180_0000
Peripheral Regs
128 MB External 128 MB External 128 MB External 128 MB External Available via Daughter Card Connector
FFFF_FFFF
Chapter 3, Slide 27
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Daughter Card
CE2
CPLD
CPU
Data Cache
EMIFB EMIFA
Flash ROM
(512 kB)
CE0
DSK uses both EMIFs (A and B) EMIFA CE0 for SDRAM CE2 and CE3 pinned-out to daughter card connector EMIFB CE1 for Flash Memory and CPLD (switches, LEDs, etc.)
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 29
Chapter 3, Slide 30
C6416 DSK
Internal RAM: 1MB
Internal RAM: 1 MB
6800_0000
6C00_0000 8000_0000 9000_0000 A000_0000 B000_0000
SDRAM: 16 MB
Daughter Card
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 31
(2) Connect the power and observe the Power On Self-Test (POST) (Refer to Slide 15). (3) A . If using the DSK6711 Configure and test the DSK with the utilities shown below:
Chapter 3, Slide 32
Chapter 3, Slide 33
Chapter 3, Slide 34
a x
i 0
N 1
i i
with:
(1) Create a working directory and copy the following files from \Code\Chapter 03 - CCS and DSK\: (a) lab3.cdb (b) lab3.c (c) lab3cfg.cmd (2) Create a new project: (a) Start CCS. (b) Create a new project as shown on the following slide. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004 Chapter 3, Slide 35
Note: When you type in the Project Name a directory is created in the Location.
Delete this if not required.
Chapter 3, Slide 36
Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 37
Chapter 3, Slide 38
(b) Verify that the build output window is complete with 0 errors, 0 warnings:
CCS menu
Chapter 3, Slide 39
Chapter 3, Slide 40
Chapter 3, Slide 41
Chapter 3, Slide 42
(ii) To add another variable to the watch select it and then drag and drop it on to the window. Dr. Naim Dahnoun, Bristol University, (c) Texas Instruments 2004
Chapter 3, Slide 43
Chapter 3, Slide 44
Chapter 3, Slide 45
Chapter 3, Slide 46
Chapter 3, Slide 47
Chapter 3, Slide 48
CCS Overview:
\Links\spru301c.pdf
\Links\ccs_dsk.pdf
Resets:
Chapter 3, Slide 49